From 1df997c38c5799c2f596d722dcdeb2f693f8392a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Sat, 9 Sep 2023 10:48:07 +0200 Subject: [PATCH] kata-deploy: Fix aarch64 image build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similarly to what's been done for x86_64 -> amd64, we need to do a aarch64 -> arm64 change in order to be able to download the kubectl binary. Fixes: #7861 Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 139c7f03ab67180d7ce3d9c291cfc963ff9b38a5) --- tools/packaging/kata-deploy/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/packaging/kata-deploy/Dockerfile b/tools/packaging/kata-deploy/Dockerfile index 2db312458..dd16a775d 100644 --- a/tools/packaging/kata-deploy/Dockerfile +++ b/tools/packaging/kata-deploy/Dockerfile @@ -14,6 +14,7 @@ RUN \ apk --no-cache add bash curl && \ ARCH=$(uname -m) && \ if [ "${ARCH}" = "x86_64" ]; then ARCH=amd64; fi && \ + if [ "${ARCH}" = "aarch64" ]; then ARCH=arm64; fi && \ curl -fL --progress-bar -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl && \ chmod +x /usr/bin/kubectl && \ mkdir -p ${DESTINATION} && \