Skip to content

Commit 20c5a7f

Browse files
committed
pin version of gauge, refactoring
1 parent c75cebd commit 20c5a7f

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

Dockerfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ ENV MAVEN_VERSION=3.6.0 \
66
NODE_VERSION=10.14.2 \
77
SHELL=/bin/bash \
88
LANG=en_US.UTF-8 \
9-
CSVER=3.0.0
9+
CSVER=3.0.0 \
10+
GAUGE_VER=1.0.8
11+
1012
ENV PATH $MAVEN_HOME/bin:/usr/local/bin:$PATH
1113

1214
# Packages
@@ -26,29 +28,34 @@ RUN apt-get update \
2628
&& apt-get clean \
2729
&& rm -rf /var/lib/apt/lists/* \
2830
&& rm -rf /var/cache/oracle-jdk11-installer \
29-
&& npm install -g npmlog \
30-
&& mkdir /automation \
31-
&& curl -SsL https://downloads.gauge.org/stable | sh \
32-
&& gauge install java \
33-
&& gauge install js \
34-
&& gauge install screenshot \
35-
&& gauge install html-report \
36-
&& gauge install xml-report
31+
&& npm install -g npmlog
3732

3833
# https://wiki.debian.org/Locale#Manually
3934
RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
4035
&& locale-gen \
4136
&& chsh -s /bin/bash \
4237
&& echo "seluser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
4338

39+
# Install Gauge
40+
RUN curl -SsL -o gauge.zip https://github.com/getgauge/gauge/releases/download/v${GAUGE_VER}/gauge-${GAUGE_VER}-linux.x86_64.zip \
41+
&& unzip -q gauge.zip \
42+
&& cp ./gauge /usr/local/bin/ \
43+
&& cd ../tmp \
44+
&& rm -rf tmp \
45+
&& gauge install java \
46+
&& gauge install js \
47+
&& gauge install screenshot \
48+
&& gauge install html-report \
49+
&& gauge install xml-report
50+
4451
RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.4-linux-amd64.tar.gz | tar -C /usr/local/bin -xzf - && \
4552
chown root:root /usr/local/bin/fixuid && \
4653
chmod 4755 /usr/local/bin/fixuid && \
4754
mkdir -p /etc/fixuid && \
4855
printf "user: seluser\ngroup: seluser\n" > /etc/fixuid/config.yml
4956

5057
RUN cd /tmp && \
51-
curl -SsL https://github.com/cdr/code-server/releases/download/$CSVER/code-server-${CSVER}-linux-x86_64.tar.gz | tar -xzf - && \
58+
curl -SsL https://github.com/cdr/code-server/releases/download/${CSVER}/code-server-${CSVER}-linux-x86_64.tar.gz | tar -xzf - && \
5259
mv code-server* /usr/local/lib/code-server && \
5360
ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
5461

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
vscode:
4-
image: "registry.gitlab.com/softrams-public/vscode-docker:v1.0.0"
4+
image: "docker.pkg.github.com/softrams/automation-toolset/vscode-automation:v1.0.1"
55
ports:
66
- "8080:8080"
77
environment:

0 commit comments

Comments
 (0)