From 0d835a15b94e89eda438394e9f83eb38e8d5c09d Mon Sep 17 00:00:00 2001 From: nkogut Date: Sun, 22 Nov 2026 02:07:08 +0000 Subject: [PATCH] Persist controller Python dependency across container recreation --- support/jenkins-runtime/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 support/jenkins-runtime/Dockerfile diff --git a/support/jenkins-runtime/Dockerfile b/support/jenkins-runtime/Dockerfile new file mode 100644 index 0000000..3b684fa --- /dev/null +++ b/support/jenkins-runtime/Dockerfile @@ -0,0 +1,10 @@ +# Build: docker build --pull=false -t myfileagent-jenkins-python:2.580.1 support/jenkins-runtime +# Deployment: compose.jenkins.yaml image: myfileagent-jenkins-python:2.580.1 +# Retain jenkins-home, JAVA_OPTS=-Xms64m -Xmx192m and the 448m container limit. +# Python must be in the image: packages installed only in a running container +# disappear when Compose recreates that container. Jenkinsfile remains unchanged. +FROM jenkins/jenkins@sha256:a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1 +USER root +RUN apt-get update && apt-get install -y --no-install-recommends python3 && rm -rf /var/lib/apt/lists/* +USER jenkins +RUN python3 --version