Skip to content

Commit

Permalink
fix permissions on /usr/share/jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadel committed Sep 21, 2019
1 parent 782ab1d commit ff3bf59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ COPY jenkins-support /usr/local/bin/jenkins-support
COPY install-plugins.sh /usr/local/bin/install-plugins.sh
RUN bash /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

USER root
RUN chown -R jenkins /usr/share/jenkins
USER 1000

COPY jenkins.sh /usr/share/jenkins
COPY launch.sh /usr/share/jenkins
ENTRYPOINT ["tini", "--", "/usr/share/jenkins/launch.sh"]
COPY jenkins.sh /usr/share/jenkins/ref
COPY launch.sh /usr/share/jenkins/ref
ENTRYPOINT ["tini", "--", "/usr/share/jenkins/ref/launch.sh"]
2 changes: 1 addition & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jenkins-cleanup

deploy-groovy-scripts

exec /usr/share/jenkins/jenkins.sh "$@"
exec /usr/share/jenkins/ref/jenkins.sh "$@"

0 comments on commit ff3bf59

Please sign in to comment.