mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
Merge pull request #3823 from BenTheElder/fix-push-node
fix push node having qemu setup reliably
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# TODO: newer buildx releases ship their own qemu copies and don't need any of this
|
||||
# We can skip setup if the current builder already has multi-arch
|
||||
# AND if it isn't the docker driver, which doesn't work
|
||||
current_builder="$(docker buildx inspect)"
|
||||
|
||||
@@ -28,8 +28,9 @@ make build
|
||||
# path to kubernetes sources
|
||||
KUBEROOT="${KUBEROOT:-"$(go env GOPATH)"/src/k8s.io/kubernetes}"
|
||||
|
||||
# ensure we have qemu setup (de-duped logic with setting up buildx for multi-arch)
|
||||
"${REPO_ROOT}/hack/build/init-buildx.sh"
|
||||
# ensure we have qemu setup so we can run cross-arch images
|
||||
# TODO: dedupe specifying this image?
|
||||
docker run --rm --privileged tonistiigi/binfmt:qemu-v7.0.0-28@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 --install all
|
||||
|
||||
# NOTE: adding platforms is costly in terms of build time
|
||||
# we will consider expanding this in the future, for now the aim is to prove
|
||||
|
||||
Reference in New Issue
Block a user