Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.87 KB

README.md

File metadata and controls

71 lines (48 loc) · 2.87 KB

sitture / docker-gauge-java

CircleCI License: MIT contributions welcome Docker Pulls Docker Stars

Gauge Badge

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
  • Maven 3
  • Additional tools: bash, curl, wget, unzip, tar

Usage

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"

Using docker run

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.

Using docker-compose.yml

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

Issues & Contributions

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.