From 3cb0a46788a0a3cd9d79f0cfcdcd76496c08e57f Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 14 Oct 2022 19:07:10 +0200 Subject: [PATCH] jenkins fixes --- jenkins-agent/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jenkins-agent/Dockerfile b/jenkins-agent/Dockerfile index 0fdaf27..5dad164 100644 --- a/jenkins-agent/Dockerfile +++ b/jenkins-agent/Dockerfile @@ -28,4 +28,11 @@ RUN cd /opt \ && tar xvjf firefox-64.0.2.tar.bz2 \ && rm firefox-64.0.2.tar.bz2 +# Fix defunct processeses: https://github.com/jenkinsci/docker-inbound-agent/issues/51 +ENV TINI_VERSION v0.19.0 +RUN wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \ + && chmod 755 /tini + USER jenkins + +ENTRYPOINT ["/tini", "--", "/usr/local/bin/jenkins-agent"]