-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
34 lines (23 loc) · 1.27 KB
/
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
32
33
34
FROM cloudbees/cloudbees-core-mm:2.222.1.1-alpine
LABEL maintainer "kmadel@cloudbees.com"
#skip setup wizard and disable CLI
ENV JVM_OPTS -Djenkins.CLI.disabled=true -server
ENV TZ="/usr/share/zoneinfo/America/New_York"
RUN mkdir -p /usr/share/jenkins/ref/license-activated-or-renewed-after-expiration.groovy.d
#Jenkins system configuration via init groovy scripts - see https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Jenkins+upon+start+up
COPY ./init.groovy.d/* /usr/share/jenkins/ref/license-activated-or-renewed-after-expiration.groovy.d/
RUN mkdir -p /usr/share/jenkins/ref/plugins
COPY cloudbees-github-reporting-0.5.hpi /usr/share/jenkins/ref/plugins/
#install suggested and additional plugins
ENV JENKINS_UC http://jenkins-updates.cloudbees.com
COPY ./jenkins_ref /usr/share/jenkins/ref
COPY jenkins-support /usr/local/bin/jenkins-support
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
COPY install-plugins.sh /usr/local/bin/install-plugins.sh
RUN bash /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
COPY jenkins.sh /usr/share/jenkins/ref
COPY launch.sh /usr/share/jenkins/ref
USER root
RUN chmod +x /usr/share/jenkins/ref/launch.sh /usr/share/jenkins/ref/jenkins.sh
USER 1000
ENTRYPOINT ["tini", "--", "/usr/share/jenkins/ref/launch.sh"]