Docker Allure | |
---|---|
✨ | Use Allure with a single command and keep your system clean |
🔧 | Built with Alpine Linux so the whole image is only 76mb! |
💻 | Reports are shared back to your local filesystem |
Supports custom allure.properties files | |
🚀 | Use your favourite OS/CI without worrying about dependancies |
$ docker pull automationwizards/allure:1.4.24.RC3 # Tag can be any recent allure version
$ docker build -t <tag_name> -f 1.4.24.RC3.Dockerfile # Pass -f to use specific version of Allure
$ docker run \
-v $(pwd)/allure-report:/allure-report \ # Mandatory - Where to place the complied report
-v $(pwd)/allure-results:/allure-results \ # Mandatory - Where to look for test runs
-v $(pwd)/allure-config:/allure-config \ # Optional - Where to look for an allure.properties file
automationwizards/allure:1.4.24.RC3 allure report generate /allure-results -o /allure-report
$ docker run -i \
-p 5000:5000 \
-v $(pwd)/allure-report:/allure-report \
automationwizards/allure:1.4.24.RC3 allure report open -o /allure-report -p 5000 & \
/usr/bin/open -a "/Applications/Google Chrome.app" 'http://127.0.0.1:5000'
$ docker run -i \
-p 5000:5000 \
-v $(pwd)/allure-report:/allure-report \
automationwizards/allure:1.4.24.RC3 \
allure report open -o /allure-report -p 5000
$ automationwizards/allure:1.4.23
You can use all of the commands given above, just change the tag version when calling the docker image!
I have included an cli script and a demo allure-results folder in this repo to highlight the ease of using allure inside a docker container. Simply use the command below and then select any of the options from the list. Have Fun :)
$ ./usage_example.sh VERSION 1.4.24.RC3
Allure 1.4.24.RC3 Tasks
1) Generate Report 6) Kill All Containers
2) Open Report (Mac/Chrome) 7) Delete All Containers
3) Build Image 8) Delete All Images
4) Push Image 9) Exit
5) Pull Image