-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (17 loc) · 809 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
FROM jenkins/jenkins:2.204.4
USER root
RUN /usr/local/bin/install-plugins.sh \
rebuild \
job-dsl
ENV DEMO_JOB_DIR="/opt/bin/jobs/" \
SEED_JOB_WORKSPACE_DIR="/var/jenkins_home/jobs/seed/workspace/"
RUN mkdir -p /var/jenkins_home/init.groovy.d/ \
&& mkdir -p /var/jenkins_home/jobs/seed/workspace/helpers \
&& ln -s /var/jenkins_home/jobs/seed /.
COPY config.sh /opt/bin/config.sh
COPY jenkins-config/basic-security.groovy /var/jenkins_home/init.groovy.d/basic-security.groovy
COPY jenkins-seedjob-config.xml /var/jenkins_home/jobs/seed/config.xml
COPY jobs/ $DEMO_JOB_DIR
RUN chmod +x /opt/bin/config.sh
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
ENTRYPOINT ["/sbin/tini", "--", "/opt/bin/config.sh"]