Skip to content

Commit

Permalink
Fix operator multi-arch build with updated buildkit and binfmt (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhoyos authored Jan 13, 2025
1 parent 8d80e98 commit 770310d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ gen-crd-doc: .gen-crd-doc-kiali .gen-crd-doc-ossmconsole
.ensure-buildx-builder: .ensure-docker-buildx
@if ! docker buildx inspect kiali-builder > /dev/null 2>&1; then \
echo "The buildx builder instance named 'kiali-builder' does not exist. Creating one now."; \
if ! docker buildx create --name=kiali-builder --driver-opt=image=moby/buildkit:v0.8.0; then \
if ! docker buildx create --name=kiali-builder --driver-opt=image=moby/buildkit:v0.13.2; then \
echo "Failed to create the buildx builder 'kiali-builder'"; \
exit 1; \
fi \
fi; \
if [[ $$(uname -s) == "Linux" ]]; then \
echo "Ensuring QEMU is set up for this Linux host"; \
if ! docker run --privileged --rm quay.io/kiali/binfmt:latest --install all; then \
if ! docker run --privileged --rm tonistiigi/binfmt:latest --install all; then \
echo "Failed to ensure QEMU is set up. This build will be allowed to continue, but it may fail at a later step."; \
fi \
fi
Expand Down

0 comments on commit 770310d

Please sign in to comment.