Skip to content

Commit 6d12089

Browse files
committed
Set jenkins user home to /var/jenkins_home
1 parent 1b45c44 commit 6d12089

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y maven ant ruby rbenv make
99
RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
1010
RUN echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >> /etc/apt/sources.list
1111
RUN apt-get update && apt-get install -y jenkins
12+
RUN usermod -m -d /var/jenkins_home jenkins
1213
RUN mkdir -p /var/jenkins_home && chown -R jenkins /var/jenkins_home
1314
ADD init.groovy /tmp/WEB-INF/init.groovy
1415
RUN cd /tmp && zip -g /usr/share/jenkins/jenkins.war WEB-INF/init.groovy

0 commit comments

Comments
 (0)