@@ -6,7 +6,9 @@ ENV MAVEN_VERSION=3.6.0 \
6
6
NODE_VERSION=10.14.2 \
7
7
SHELL=/bin/bash \
8
8
LANG=en_US.UTF-8 \
9
- CSVER=3.0.0
9
+ CSVER=3.0.0 \
10
+ GAUGE_VER=1.0.8
11
+
10
12
ENV PATH $MAVEN_HOME/bin:/usr/local/bin:$PATH
11
13
12
14
# Packages
@@ -26,29 +28,34 @@ RUN apt-get update \
26
28
&& apt-get clean \
27
29
&& rm -rf /var/lib/apt/lists/* \
28
30
&& 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
37
32
38
33
# https://wiki.debian.org/Locale#Manually
39
34
RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
40
35
&& locale-gen \
41
36
&& chsh -s /bin/bash \
42
37
&& echo "seluser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
43
38
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
+
44
51
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 - && \
45
52
chown root:root /usr/local/bin/fixuid && \
46
53
chmod 4755 /usr/local/bin/fixuid && \
47
54
mkdir -p /etc/fixuid && \
48
55
printf "user: seluser\n group: seluser\n " > /etc/fixuid/config.yml
49
56
50
57
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 - && \
52
59
mv code-server* /usr/local/lib/code-server && \
53
60
ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
54
61
0 commit comments