@@ -7,9 +7,11 @@ ENV MAVEN_VERSION=3.6.0 \
7
7
SHELL=/bin/bash \
8
8
LANG=en_US.UTF-8 \
9
9
CSVER=3.0.0 \
10
- GAUGE_VER=1.0.8
10
+ GAUGE_VER=1.0.8 \
11
+ VAULT_VER=1.3.4 \
12
+ PATH=$MAVEN_HOME/bin:/usr/local/bin:$PATH
11
13
12
- ENV PATH $MAVEN_HOME/bin:/ usr/local/bin:$PATH
14
+ COPY docker-entrypoint.sh / usr/local/bin/
13
15
14
16
# Packages
15
17
USER root
@@ -34,6 +36,12 @@ RUN sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen \
34
36
&& chsh -s /bin/bash \
35
37
&& echo "seluser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
36
38
39
+ # Install Vault
40
+ RUN curl -SsL -o vault.zip https://releases.hashicorp.com/vault/${VAULT_VER}/vault_${VAULT_VER}_linux_amd64.zip \
41
+ && unzip -q vault.zip \
42
+ && cp ./vault /usr/local/bin/
43
+
44
+
37
45
# Install Gauge
38
46
RUN curl -SsL -o gauge.zip https://github.com/getgauge/gauge/releases/download/v${GAUGE_VER}/gauge-${GAUGE_VER}-linux.x86_64.zip \
39
47
&& unzip -q gauge.zip \
@@ -47,23 +55,22 @@ RUN curl -SsL -o gauge.zip https://github.com/getgauge/gauge/releases/download/v
47
55
&& gauge install xml-report
48
56
49
57
# Install fixuid
50
- 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 - && \
51
- chown root:root /usr/local/bin/fixuid && \
52
- chmod 4755 /usr/local/bin/fixuid && \
53
- mkdir -p /etc/fixuid && \
54
- printf "user: seluser\n group: seluser\n " > /etc/fixuid/config.yml
58
+ 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 - \
59
+ && chown root:root /usr/local/bin/fixuid \
60
+ && chmod 4755 /usr/local/bin/fixuid \
61
+ && mkdir -p /etc/fixuid \
62
+ && printf "user: seluser\n group: seluser\n " > /etc/fixuid/config.yml
55
63
56
64
# Install Code-Server
57
65
RUN cd /tmp && \
58
- curl -SsL https://github.com/cdr/code-server/releases/download/${CSVER}/code-server-${CSVER}-linux-x86_64.tar.gz | tar -xzf - && \
59
- mv code-server* /usr/local/lib/code-server && \
60
- ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
66
+ curl -SsL https://github.com/cdr/code-server/releases/download/${CSVER}/code-server-${CSVER}-linux-x86_64.tar.gz | tar -xzf - \
67
+ && mv code-server* /usr/local/lib/code-server \
68
+ && ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
61
69
62
70
USER seluser
63
71
64
72
EXPOSE 8080
65
73
WORKDIR /home/seluser
66
74
67
- RUN mkdir -p /home/seluser/workspace && /usr/local/bin/code-server --install-extension getgauge.gauge
68
-
69
- ENTRYPOINT ["dumb-init" , "fixuid" , "-q" , "/usr/local/bin/code-server" , "--host" , "0.0.0.0" , "/home/seluser/workspace" ]
75
+ ENTRYPOINT ["docker-entrypoint.sh" ]
76
+ CMD ["dumb-init" , "fixuid" , "-q" , "/usr/local/bin/code-server" , "--host" , "0.0.0.0" , "/home/seluser" ]
0 commit comments