From 2579cc7f006f964008b0cb73f41c1c9c1bd2c512 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 25 Jun 2024 16:35:37 +0000 Subject: [PATCH] fix: Adjust things to new HOME location --- Dockerfile | 2 ++ entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 264b081..bf92b2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,8 @@ RUN echo -e "$BUILDUSER:100000:65535" > /etc/subuid && \ RUN sed -i -e 's/exec \$JAVA_BIN/podman system service -t0\&\n exec \$JAVA_BIN/' /usr/local/bin/jenkins-agent ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run +ENV XDG_CONFIG_HOME=/home/$BUILDUSER + ENV BUILDAH_ISOLATION=chroot ENV _CONTAINERS_USERNS_CONFIGURED="" diff --git a/entrypoint.sh b/entrypoint.sh index 502575b..d6f6993 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ #!/bin/sh -mkdir -p $HOME/agent/xdg-run $HOME/agent/containers/run $HOME/agent/containers/storage +mkdir -p $HOME/xdg-run $HOME/containers/run $HOME/containers/storage /usr/local/bin/jenkins-agent