FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 7620a2c3 authored by Robin Goodall's avatar Robin Goodall :speech_balloon:
Browse files

feat: no parallelism for multiarch builds

parent 8caae0c4
No related branches found
No related tags found
1 merge request!164Non parallel multiarch
......@@ -9,10 +9,7 @@
- apk update
- apk add bash gettext # for envsubst command
- apk add jq # for querying manifests
# The official docs state that `docker buildx create --use` should be enough on its own. However, there appears to be
# a bug which, even though this issue is closed https://github.com/docker/buildx/issues/584#issuecomment-830041059,
# still requires this `docker run --rm` workaround.
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes || true; docker buildx create --use
- ./prep-buildx.sh
script:
- ./build.sh
variables:
......
#! /bin/bash
set -ex
# Change max-parallelism to 1 if building multiple archs
echo "[worker.oci]" > /etc/buildkitd.toml
if [[ $IMAGE_ARCHS == *","* ]]; then
echo "Setting max-parallelism to 1 as building multiple archs"
echo " max-parallelism = 1" >> /etc/buildkitd.toml
fi
# The official docs state that `docker buildx create --use` should be enough on its own. However, there appears to be
# a bug which, even though this issue is closed https://github.com/docker/buildx/issues/584#issuecomment-830041059,
# still requires this `docker run --rm` workaround.
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes || true; docker buildx create --config /etc/buildkitd.toml --use
docker buildx inspect --bootstrap
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment