From d414c7cb1f2095299583af6481f9ed2e4cff46eb Mon Sep 17 00:00:00 2001 From: Ike Ma Date: Thu, 30 Mar 2023 23:51:56 +0000 Subject: [PATCH] Add GNU C compiler for arm64 architecture Enable cross compilation for building arm64 binaries in amd64 env --- images/kubekins-e2e/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/kubekins-e2e/Dockerfile b/images/kubekins-e2e/Dockerfile index ad5c30233c49..68a13a7b127b 100644 --- a/images/kubekins-e2e/Dockerfile +++ b/images/kubekins-e2e/Dockerfile @@ -34,11 +34,13 @@ RUN mkdir -p /go/src/k8s.io/kubernetes \ && ln -s /go/src/k8s.io/kubernetes /workspace/kubernetes # preinstall: -# - graphviz package for graphing profiles # - bc for shell to junit +# - gcc-aarch64-linux-gnu for cross-compile arm64 binaries +# - graphviz package for graphing profiles # - rpm for building RPMs with Bazel RUN apt-get update && \ apt-get install -y bc \ + gcc-aarch64-linux-gnu \ graphviz \ rpm && \ rm -rf /var/lib/apt/lists/*