Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
Pavel Studeník edited this page Mar 23, 2017 · 6 revisions

How to setup up Green Tea

Beaker

At first you set values for Beaker. Create and modify file setting/production.py

BEAKER_SERVER = "beaker.example.com"
BEAKER_OWNER = "username"
BEAKER_PASS = "password"

Cron

For asynchronous operation Green Tea needs to run cron.

*/1 * * * * greentea python /data/Greantea/manage.py pickup --traceback

Following command check status of beaker jobs (automation tests):

*/20 * * * * greentea python /data/Greantea/manage.py check_beaker --quiet --traceback

Or it is possible to create record in taskperiod (greentea cron) in webui administration (page /admin/taskomatic/taskperiod/):

...
Command: check_beaker
Enable: True
...

Elasticsearch

Warning: only version 2 (currently 2.4) of Elasticsearch is supported.

For searching in beaker logs, it can possible use service elasticsearch. The easy way is run docker

docker run -d --name elasticsearch.localhost -p 9200:9200 elasticsearch:2

and set correct address in project's settings.

ELASTICSEARCH = ("0.0.0.0", )

Kibana

docker run -d -p 5601:5601 --name kibana.localhost --link <elasticsearch>:<elasticsearch> -e ELASTICSEARCH_URL=http://<elasticsearch>:9200 kibana:4

Clone this wiki locally