File tree Expand file tree Collapse file tree 3 files changed +41
-7
lines changed
Expand file tree Collapse file tree 3 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,15 @@ ARG GAUGE_VERSION
1717ENV GAUGE_VERSION $GAUGE_VERSION
1818ENV GAUGE_ARCHIVE gauge-$GAUGE_VERSION-linux.x86_64.zip
1919
20- RUN \
20+ RUN wget -qnc "https://github.com/getgauge/gauge/releases/download/v$GAUGE_VERSION/$GAUGE_ARCHIVE" && \
2121 # example release url https://github.com/getgauge/gauge/releases/download/v1.0.0/gauge-1.0.0-linux.x86_64.zip
22- wget -qnc "https://github.com/getgauge/gauge/releases/download/v$GAUGE_VERSION/$GAUGE_ARCHIVE" && \
2322 unzip $GAUGE_ARCHIVE -d /usr/local/bin && \
2423 rm -rf $GAUGE_ARCHIVE && \
2524 # install gauge plugins
2625 gauge install java && \
2726 gauge install html-report && \
2827 gauge install xml-report && \
29- gauge install spectacle && \
30- gauge install flash && \
31- gauge -v
28+ gauge install spectacle && gauge -v
3229
3330WORKDIR /usr/src/app
3431ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -8,7 +8,40 @@ The docker image tagging is based on the [version of Gauge](https://github.com/g
88
99## Usage
1010
11- * TODO
11+ Pull the latest Image with
12+
13+ ``` bash
14+ docker pull sitture/docker-gauge-java:latest
15+ ```
16+
17+ ### Using ` docker run `
18+
19+ ``` bash
20+ docker run -it --rm sitture/docker-gauge-java:latest gauge -v
21+ ```
22+
23+ When using maven, you can mount the maven ` .m2 ` repository in the container:
24+
25+ ``` bash
26+ docker run -it --rm -v ~ /.m2:/root/.m2 sitture/docker-gauge-java:latest mvn --version
27+ ```
28+
29+ You can add additional volumes for your test reports, etc.
30+
31+ ### Using ` docker-compose.yml `
32+
33+ Example:
34+
35+ ``` yaml
36+ services :
37+ gauge :
38+ image : sitture/docker-gauge-java:latest
39+ container_name : docker-gauge-java
40+ volumes :
41+ - ' .:/usr/src/app'
42+ - ' /Users/${USER}/.m2:/root/.m2'
43+ command : gauge -v
44+ ` ` `
1245
1346## Issues & Contributions
1447
Original file line number Diff line number Diff line change @@ -4,4 +4,8 @@ services:
44 build : .
55 container_name : docker-gauge-java
66 environment :
7- - GAUGE_VERSION=${GAUGE_VERSION}
7+ - GAUGE_VERSION=${GAUGE_VERSION}
8+ volumes :
9+ - ' .:/usr/src/app'
10+ - ' /Users/${USER}/.m2:/root/.m2'
11+ command : gauge -v
You can’t perform that action at this time.
0 commit comments