-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·46 lines (34 loc) · 938 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
39
40
41
42
43
44
45
46
FROM jenkins/jenkins:latest
USER root
RUN apt-get update -qq && apt-get install -qqy apt-utils
RUN apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables \
sudo
RUN curl -sSL https://get.docker.com/ | sh
RUN adduser jenkins sudo
RUN echo "jenkins ALL = NOPASSWD: /usr/bin/docker" >> /etc/sudoers
RUN cat /etc/sudoers
RUN mkdir /var/log/jenkins
RUN chown -R jenkins:jenkins /var/log/jenkins
USER jenkins
ENV JENKINS_USER admin
ENV JENKINS_PASS cq
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
COPY init.groovy.d/* /usr/share/jenkins/ref/init.groovy.d/
#COPY plugins.txt /usr/share/jenkins/plugins.txt
#RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh\
git\
docker\
matrix-auth\
simple-theme-plugin:0.3\
workflow-aggregator\
job-dsl\
startup-trigger-plugin\
authorize-project\
pipeline-maven\
timestamper