Some amazing Docker images to work with Allure Out Of The Box
It is necessary to share a volume to the current directory to make the necessary Allure files available for the Docker container (use the /files
volume in the container). A good way to use this image could be to create a new alias in your bash_profile file:
alias allure='docker run --rm -it -v $(pwd):/files lcaparros/allure:<version>'
Now you could just type allure
in the CLI and it will work as the real Allure binary.
If you wish to generate a .docx
report, you can use the image labeled $VERSION-word
. This version will include allure-docx tool, so it will be available for its usage. For example, a quick way to generate word report will be by:
allure-docs allure-results allureReport.docx
Please refer to their documentation for getting more informatio about the different options or how to use this tool.
Create a new Pull Request with the necessary changes. After being reviewed and merged a new tag will be generated, creating a new Release and publishing the new version.
$ git tag -a v1.0.9 -m "This is my new amazing version"
$ git push origin v1.0.9
$ docker build --build-arg VERSION=<version> --build-arg BUILD_DATE="$(date +%Y/%m/%dT%H:%M:%S)" -t allure .
$ docker tag allure lcaparros/allure:<version>
$ docker push lcaparros/allure:<version>