-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 1.11 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
FROM jenkins/jenkins:latest
USER root
ENV DOCKER_CHANNEL stable
ENV DOCKER_VERSION 17.12.0-ce
RUN set -ex; \
curl -fL -o docker.tgz "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz"; \
tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin; \
rm docker.tgz; \
dockerd -v; \
docker -v
USER jenkins
COPY --chown=jenkins files/gitconfig.txt $JENKINS_HOME/.gitconfig
COPY --chown=jenkins files/ssh-config $JENKINS_HOME/.ssh/config
ENV JAVA_OPTS "-Djenkins.install.runSetupWizard=false -Djava.util.logging.config.file=/var/jenkins_home/log.properties"
COPY files/plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
COPY --chown=jenkins files/log.properties /var/jenkins_home/log.properties
COPY files/init.groovy /usr/share/jenkins/ref/init.groovy.d/init.groovy
COPY files/bootstrap.xml /usr/share/jenkins/ref/jobs/seed/config.xml
COPY files/javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration.xml /usr/share/jenkins/ref/javaposse.jobdsl.plugin.GlobalJobDslSecurityConfiguration.xml