-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile-jdk17
More file actions
29 lines (21 loc) · 909 Bytes
/
Dockerfile-jdk17
File metadata and controls
29 lines (21 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM jenkins/jenkins:2.541.3-rhel-ubi9-jdk17
LABEL maintainer="[email protected]"
# Modified jenkins.sh to allow use inside a dockerfile based Jenkins job
COPY jenkins.sh /usr/local/bin/jenkins.sh
ENV CASC_JENKINS_CONFIG=${JENKINS_HOME}/configuration-as-code/
USER root
# Install and check that expected utilities are available in the image
# hadolint ignore=DL3008
RUN dnf install --disableplugin=subscription-manager --setopt=install_weak_deps=0 --setopt=tsflags=nodocs -y \
gnupg \
make \
procps \
wget \
&& dnf clean --disableplugin=subscription-manager all \
&& test -x /usr/bin/pgrep \
&& test -x /usr/bin/wget \
&& test -x /usr/bin/git-lfs
# Create cache directory for git repository mirrors
RUN mkdir -p /var/cache/jenkins && chown jenkins:jenkins /var/cache/jenkins
USER jenkins
COPY --chown=jenkins:jenkins ref /usr/share/jenkins/ref/