Pre-create podman storage root
Suspected cause of ownership problems when mounting a volume at this location. Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
This commit is contained in:
@@ -98,7 +98,7 @@ RUN sed -i -r \
|
|||||||
chmod +x /usr/local/bin/podman-in-podman-maintenance && \
|
chmod +x /usr/local/bin/podman-in-podman-maintenance && \
|
||||||
chown -R podman.podman /home/podman && \
|
chown -R podman.podman /home/podman && \
|
||||||
rm -f /home/podman/.bash* && \
|
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
|
# Runtime rootless-mode configuration
|
||||||
USER podman
|
USER podman
|
||||||
@@ -107,6 +107,9 @@ VOLUME ["/home/podman/.local/share/containers/storage/",\
|
|||||||
WORKDIR /home/podman
|
WORKDIR /home/podman
|
||||||
ENTRYPOINT ["/usr/local/bin/gitlab-runner-wrapper"]
|
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)
|
# Gitlab-runner configuration options. Default to unprivileged (nested)
|
||||||
# runner. Privileged is required to permit nested container image building.
|
# runner. Privileged is required to permit nested container image building.
|
||||||
ARG RUNNER_NAME="qontainers-pipglr"
|
ARG RUNNER_NAME="qontainers-pipglr"
|
||||||
|
|||||||
Reference in New Issue
Block a user