diff options
| author | zhu733756 <zhu733756@kubesphere.io> | 2022-02-24 17:46:47 +0800 |
|---|---|---|
| committer | zhu733756 <zhu733756@kubesphere.io> | 2022-02-25 15:38:17 +0800 |
| commit | b45ddcc4c494856dbaa8c0d3f5112caf9d7815bc (patch) | |
| tree | 74d60dae3e7c489d072b7d778c72a71648c89e4b /hack/make-rules | |
| parent | Merge pull request #3581 from moolen/fix/metrics-func (diff) | |
| download | kubeedge-b45ddcc4c494856dbaa8c0d3f5112caf9d7815bc.tar.gz | |
buildx on x86
Signed-off-by: zhu733756 <zhu733756@kubesphere.io>
Diffstat (limited to 'hack/make-rules')
| -rwxr-xr-x | hack/make-rules/crossbuildimage.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hack/make-rules/crossbuildimage.sh b/hack/make-rules/crossbuildimage.sh index da154c881..67f8d4e25 100755 --- a/hack/make-rules/crossbuildimage.sh +++ b/hack/make-rules/crossbuildimage.sh @@ -82,6 +82,11 @@ function build_multi_arch_images() { DOCKERFILE_PATH="$(get_dockerfile_by_target ${arg})" set -x + + # If there's any issues when using buildx, can refer to the issue below + # https://github.com/docker/buildx/issues/495 + # https://github.com/multiarch/qemu-user-static/issues/100 + # docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker buildx build --build-arg GO_LDFLAGS="${GO_LDFLAGS}" -t ${IMAGE_REPO_NAME}/${IMAGE_NAME}:${IMAGE_TAG} -f ${DOCKERFILE_PATH} --platform linux/amd64,linux/arm64,linux/arm/v7 --push . set +x done |
