Skip to content

Commit

Permalink
Convert uname aarch64 to k8s arm64 before downloading kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bernier St-Pierre committed Feb 7, 2023
1 parent fab1889 commit 9e81130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/Dockerfile.suc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM ${ALPINE} as kubectl
RUN apk add -U curl
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then ARCH=amd64; fi && \
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; fi && \
curl -L -f -o /usr/bin/kubectl https://dl.k8s.io/release/v1.24.0/bin/linux/${ARCH}/kubectl && \
chmod +x /usr/bin/kubectl
RUN /usr/bin/kubectl version --client
Expand Down

0 comments on commit 9e81130

Please sign in to comment.