We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffda4fc + 6d12089 commit ac33d00Copy full SHA for ac33d00
Dockerfile
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y maven ant ruby rbenv make && apt-get cl
9
RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
10
RUN echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >> /etc/apt/sources.list
11
RUN apt-get update && apt-get install -y jenkins
12
+RUN usermod -m -d /var/jenkins_home jenkins
13
RUN mkdir -p /var/jenkins_home && chown -R jenkins /var/jenkins_home
14
ADD init.groovy /tmp/WEB-INF/init.groovy
15
RUN cd /tmp && zip -g /usr/share/jenkins/jenkins.war WEB-INF/init.groovy && rm -rf /tmp/WEB-INF
0 commit comments