From ba0ce87aa59872fe4000a5a2ebc89a3b82e956dc Mon Sep 17 00:00:00 2001 From: Eyal Zekaria Date: Fri, 20 Sep 2019 16:43:09 +0200 Subject: [PATCH] Chmod `jenkins-agent` binary --- Dockerfile | 3 ++- Dockerfile-alpine | 3 ++- Dockerfile-jdk11 | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fc44a72..49cd2c72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,8 @@ ARG user=jenkins USER root COPY jenkins-agent /usr/local/bin/jenkins-agent -RUN ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave +RUN chmod +x /usr/local/bin/jenkins-agent &&\ + ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave USER ${user} ENTRYPOINT ["jenkins-agent"] diff --git a/Dockerfile-alpine b/Dockerfile-alpine index fa3b5c62..7884f8c3 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -28,7 +28,8 @@ ARG user=jenkins USER root COPY jenkins-agent /usr/local/bin/jenkins-agent -RUN ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave +RUN chmod +x /usr/local/bin/jenkins-agent &&\ + ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave USER ${user} ENTRYPOINT ["jenkins-slave"] diff --git a/Dockerfile-jdk11 b/Dockerfile-jdk11 index e19cde23..cb9bf03e 100644 --- a/Dockerfile-jdk11 +++ b/Dockerfile-jdk11 @@ -28,7 +28,8 @@ ARG user=jenkins USER root COPY jenkins-agent /usr/local/bin/jenkins-agent -RUN ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave +RUN chmod +x /usr/local/bin/jenkins-agent &&\ + ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave USER ${user} ENTRYPOINT ["jenkins-slave"]