fix: subuid cleanup
ZeroDownTime/jenkins-podman/pipeline/head This commit looks good Details
ZeroDownTime/jenkins-podman/pipeline/tag This commit looks good Details

This commit is contained in:
Stefan Reimer 2024-03-12 15:58:11 +00:00
parent d504595922
commit 4161f32529
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ ADD entrypoint.sh /usr/local/bin/entrypoint.sh
# conf/registries.conf will be mounted RO at runtime to inherit worker settings incl. caching proxies
ADD --chown=$BUILDUSER:$BUILDUSER conf/containers.conf conf/storage.conf /home/$BUILDUSER/.config/containers
RUN echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subuid && \
echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subgid && \
RUN echo -e "$BUILDUSER:100000:65535" > /etc/subuid && \
echo -e "$BUILDUSER:100000:65535" > /etc/subgid && \
cd /usr/bin && ln -s podman docker && \
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER