fix: Adjust things to new HOME location

This commit is contained in:
Stefan Reimer 2024-06-25 16:35:37 +00:00
parent 5d782faa02
commit 2579cc7f00
2 changed files with 3 additions and 1 deletions

View File

@ -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 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_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run
ENV XDG_CONFIG_HOME=/home/$BUILDUSER
ENV BUILDAH_ISOLATION=chroot ENV BUILDAH_ISOLATION=chroot
ENV _CONTAINERS_USERNS_CONFIGURED="" ENV _CONTAINERS_USERNS_CONFIGURED=""

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/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 /usr/local/bin/jenkins-agent