Fix rootless images

This commit is contained in:
Nico Neumann 2024-02-12 16:20:11 +01:00
parent 2add921274
commit 5b23eafd1e
2 changed files with 6 additions and 6 deletions

View File

@ -153,10 +153,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
&& if [ "$ARCH" = "aarch64" ]; then export ARCH=arm64 ; fi \
&& if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=amd64 ; fi \
&& mkdir -p /usr/libexec/docker/cli-plugins \
&& curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \
&& mkdir -p /home/runner/.docker/cli-plugins \
&& curl -fLo /home/runner/.docker/cli-plugins/docker-buildx \
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \
&& chmod +x /usr/libexec/docker/cli-plugins/docker-buildx
&& chmod +x /home/runner/.docker/cli-plugins/docker-buildx
# Create folder structure here to avoid permission issues
# when mounting the daemon.json file from a configmap.

View File

@ -131,10 +131,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
&& if [ "$ARCH" = "aarch64" ]; then export ARCH=arm64 ; fi \
&& if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "i386" ]; then export ARCH=amd64 ; fi \
&& mkdir -p /usr/libexec/docker/cli-plugins \
&& curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \
&& mkdir -p /home/runner/.docker/cli-plugins \
&& curl -fLo /home/runner/.docker/cli-plugins/docker-buildx \
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \
&& chmod +x /usr/libexec/docker/cli-plugins/docker-buildx
&& chmod +x /home/runner/.docker/cli-plugins/docker-buildx
# Create folder structure here to avoid permission issues
# when mounting the daemon.json file from a configmap.