From ff3bf59e2384034f498c2adaaaf368d5879579d8 Mon Sep 17 00:00:00 2001 From: Kurt Madel Date: Sat, 21 Sep 2019 11:19:24 -0400 Subject: [PATCH] fix permissions on /usr/share/jenkins --- Dockerfile | 10 +++------- launch.sh | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1be550e..cce69f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/launch.sh b/launch.sh index 29a0237..7ac56b4 100644 --- a/launch.sh +++ b/launch.sh @@ -14,4 +14,4 @@ jenkins-cleanup deploy-groovy-scripts -exec /usr/share/jenkins/jenkins.sh "$@" \ No newline at end of file +exec /usr/share/jenkins/ref/jenkins.sh "$@" \ No newline at end of file