Skip to content

Commit ac33d00

Browse files
committed
Merge pull request jenkinsci#5 from aleasoluciones/upstream
Set jenkins user home to /var/jenkins_home
2 parents ffda4fc + 6d12089 commit ac33d00

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 && apt-get cl
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 && rm -rf /tmp/WEB-INF

0 commit comments

Comments
 (0)