Working in progress. Please check the demo branch.
This project was created to test, create some demos and try to help Chaostoolkit community.
Note: The Docker images will automatically builded using auto build/webhook.
- Docker - Using 17.02 or above
I create an image with everything we need to test this tool. So, this is a non-production big image.
The journal file contains the result of the tests and we'll use it to generate our reports.
- If you want to change the journal file name, you can do it.
docker run --rm -e "JOURNAL_FILE=my_journal.json" lozanomatheus/chaostoolkit:demo
Note: The default value for JOURNAL_FILE
is journal.json
This option is to enable or disable the reports output. If you set anything different from ENABLED
, the report generation will be ignored.
- To disable reports, we can do it:
docker run --rm -e "REPORT=''" lozanomatheus/chaostoolkit:demo
or
docker run --rm -e "REPORT=" lozanomatheus/chaostoolkit:demo
or
docker run --rm -e "REPORT=DISABLED" lozanomatheus/chaostoolkit:demo
Note: The default value for REPORT
is ENABLED
The environment variable REPORTS_PATH
is the path with all reports.
- If you want to export it to a local path, you can follow the example below.
docker run --rm -v ${PWD}:/opt/reports lozanomatheus/chaostoolkit:demo
- If you want to change the path inside the container and export to a local path, you can use this example.
docker run --rm -e "REPORTS_PATH=/tmp/reports" -v ${PWD}:/tmp/reports lozanomatheus/chaostoolkit:demo
Note: The default value for REPORTS_PATH
is /opt/reports
Has two ways to generate the reports. The first one is passing two options, like html5 pdf
and the second one is just one option, like html5
or pdf
.
- To choose the option, we need to set
REPORT_FORMAT
variable. To do it, you can do this way:
docker run --rm -e "REPORT_FORMAT=html5 pdf" lozanomatheus/chaostoolkit:demo
Note1: The default value for REPORT_FORMAT
is html5 pdf
Note2: The Chaos Toolkit just accept PDF or HTML5 as output format.