diff --git a/Containerfile b/Containerfile index 49e59f5..1cda0ed 100644 --- a/Containerfile +++ b/Containerfile @@ -98,7 +98,7 @@ RUN sed -i -r \ chmod +x /usr/local/bin/podman-in-podman-maintenance && \ chown -R podman.podman /home/podman && \ rm -f /home/podman/.bash* && \ - echo DOCKER_HOST="unix:///tmp/podman-run-1000/podman/podman.sock" > /etc/profile.d/podman.sh + echo DOCKER_HOST="unix:///tmp/podman-run-1000/podman/podman.sock" > /etc/profile.d/podman.sh && \ # Runtime rootless-mode configuration USER podman @@ -107,6 +107,9 @@ VOLUME ["/home/podman/.local/share/containers/storage/",\ WORKDIR /home/podman ENTRYPOINT ["/usr/local/bin/gitlab-runner-wrapper"] +# Ensure root storage directory exists with correct permissions +RUN mkdir -p .local/share/containers/storage + # Gitlab-runner configuration options. Default to unprivileged (nested) # runner. Privileged is required to permit nested container image building. ARG RUNNER_NAME="qontainers-pipglr"