-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (20 loc) · 923 Bytes
/
Dockerfile
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
30
31
FROM jenkins/jenkins:2.440.1-jdk11
LABEL "org.opencontainers.image.source"="https://github.com/base2Services/jenkins-distribution"
USER root
COPY requirements.txt $REF/requirements.txt
RUN apt-get update && \
apt-get install -y python3-full python3-pip && \
rm -rf /var/lib/apt/lists/* && \
pip3 install -r $REF/requirements.txt --break-system-packages
USER jenkins
COPY plugins.yaml $REF/plugins.yaml
RUN jenkins-plugin-cli --plugin-file $REF/plugins.yaml --verbose
COPY init.groovy.d/ $REF/init.groovy.d/
COPY --chown=jenkins:jenkins jcasc/defaults.yaml /cfg/jenkins.yaml
COPY jcasc/defaults.yaml $REF/defaults.yaml
COPY jcasc/default-job-overrides.yaml $REF/default-job-overrides.yaml
COPY jcasc/ciinabox-jobs $REF/ciinabox-jobs
COPY jcasc/jcasc-apply.py /usr/local/bin/jcasc-apply
COPY jcasc/plugin-merger.py /usr/local/bin/plugin-merger
# so we can run this in code build
VOLUME /var/lib/docker