-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
38 lines (32 loc) · 1013 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
32
33
34
35
36
37
38
FROM jenkins/jenkins:2.84-alpine
RUN /usr/local/bin/install-plugins.sh \
workflow-aggregator \
docker-workflow:1.13 \
workflow-job:2.15 \
kubernetes:1.0 \
blueocean:1.3.0 \
workflow-durable-task-step \
script-security \
ansicolor \
log-parser \
git \
ssh-agent \
ansible \
http_request \
cucumber-testresult-plugin \
job-dsl \
authorize-project \
copyartifact \
role-strategy
ENV JAVA_OPTS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Taipei -Djenkins.install.runSetupWizard=false"
COPY init.groovy.d /usr/share/jenkins/ref/init.groovy.d
ADD jenkins.CLI.xml $JENKINS_HOME
ADD javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration.xml $JENKINS_HOME
USER root
RUN apk --no-cache add sudo
COPY sudoers.d /etc/sudoers.d
COPY entrypoint.sh /entrypoint.sh
# COPY plugins /usr/share/jenkins/ref/plugins
RUN chown -R jenkins.jenkins "$JENKINS_HOME" /usr/share/jenkins/ref
USER jenkins
ENTRYPOINT ["/bin/tini","--","/entrypoint.sh"]