An alpine based docker maven image with Gauge from ThoughtWorks installed for running BDD style gauge-java test suites.
The docker image tagging is based on the version of Gauge. E.g. The sitture/docker-gauge-java:latest
tag will always contain the latest version of gauge and sitture/docker-gauge-java:1.0.0
tag will contain version 1.0.0
of gauge.
Here are all the supported tags of the image.
Note: The current latest
version of the image is built on top of JDK 11
.
- Gauge Latest
- Plugins
html-report, java, screenshot, spectacle, xml-report, reportserver, inprogress
- Plugins
- Maven 3
- Additional tools:
bash, curl, wget, unzip, tar
Pull the latest Image with
docker pull sitture/docker-gauge-java:latest
Or you can build an image with remote Dockerfile:
docker build --progress=plain --pull \
--build-arg BASE_IMAGE_TAG=21-jdk \
--build-arg GAUGE_VERSION=1.6.4 \
-t sitture/docker-gauge-java:latest \
"github.com/sitture/docker-gauge-java.git#:eclipse-temurin"
docker run -it --rm sitture/docker-gauge-java:latest gauge -v
When using maven, you can mount the maven .m2
repository in the container:
docker run -it --rm -v ~/.m2:/root/.m2 sitture/docker-gauge-java:latest mvn --version
You can add additional volumes for your test reports, etc.
Example:
services:
gauge:
image: sitture/docker-gauge-java:latest
container_name: docker-gauge-java
volumes:
- '.:/usr/src/app'
- '/Users/${USER}/.m2:/root/.m2'
command: gauge -v
Please open an issue here on GitHub if you have a problem, suggestion, or other comment.
Pull requests are welcome and encouraged! Any contributions should include new or updated unit tests as necessary to maintain thorough test coverage.