Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 117f995

Browse files
authored
Update Dockerfile
1 parent 85d2272 commit 117f995

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

images/maven-temurin-11/Dockerfile

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,28 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
33
USER root
44
# install packages along with jq so we can parse JSON
55
# add additional packages as necessary
6-
ARG PACKAGES="temurin-11-jdk maven nodejs ansible chromium python3-selenium xvfb"
6+
ARG PACKAGES="temurin-11-jdk maven nodejs ansible"
77
ARG PACKAGES_PYTHON="kubernetes"
88

99
## ansible keys
1010
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
1111
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
1212

13-
## helper for karma and chromium
14-
ENV CHROME_BIN="/usr/bin/chromium"
15-
ADD xvfb-chromium /usr/bin/xvfb-chromium
16-
ADD xvfb-chromium-webgl /usr/bin/xvfb-chromium-webgl
17-
ADD display-chromium /usr/bin/display-chromium
18-
19-
RUN chmod +x /usr/bin/display-chromium /usr/bin/xvfb-chromium-webgl /usr/bin/xvfb-chromium
20-
2113
RUN apt-get update \
2214
&& add-apt-repository -y --update ppa:ansible/ansible \
23-
&& add-apt-repository -y --update ppa:xtradeb/apps \
24-
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
2515
&& apt-get install -y --no-install-recommends ${PACKAGES} \
2616
&& rm -rf /var/lib/apt/lists/* \
2717
&& apt-get clean
2818

29-
ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,temurin-11,nodejs,go,yarn,helm,ansible"
19+
ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,temurin-11,helm,ansible"
3020
# https://github.com/helm/helm/releases
3121
ARG HELM_VERSION=3.8.1
32-
# https://go.dev/dl/
33-
ARG GO_VERSION=1.18
3422

3523
# Install helm
3624
RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
3725
&& wget -q https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCH}.tar.gz -O - | tar -xzO linux-${ARCH}/helm > /usr/local/bin/helm \
3826
&& chmod +x /usr/local/bin/helm
3927

40-
# install build tools for golang
41-
RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
42-
&& wget https://golang.org/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz -O /usr/local/src/go.linux.tar.gz \
43-
&& tar -xf /usr/local/src/go.linux.tar.gz \
44-
&& rm -rf /usr/local/src/go.linux.tar.gz \
45-
&& ln -s /usr/local/src/go/bin/go /usr/local/bin/
46-
47-
4828
ENV TMP_DIR=/home/${USERNAME}/tmp
4929

5030
RUN mkdir /run/user/$USERID
@@ -57,11 +37,6 @@ RUN mkdir -p /home/${USERNAME}/.m2/ \
5737
&& chown -R $USERNAME /home/$USERNAME \
5838
&& chown -R $USERNAME /run/user/$USERID
5939

60-
# install npm tools: yarn
61-
ENV NPM_CONFIG_LOGLEVEL=warn NG_CLI_ANALYTICS=false
62-
RUN npm install --location=global yarn pnpm @angular/cli@14 \
63-
&& npm cache clean --force
64-
6540
USER $USERNAME
6641

6742
RUN pip3 install $PACKAGES_PYTHON --user

0 commit comments

Comments
 (0)