File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ FROM ubuntu:18.04
1616
1717USER root
1818
19- ARG ARCH
20-
2119RUN rm -f /bin/sh && ln -s /bin/bash /bin/sh
2220ENV KUBECTL_VERSION v1.20.2
2321COPY --from=gotty-build /gotty /usr/bin/
24- RUN echo " ARCH: " $ ARCH && apt-get update && \
25- apt-get install -y --no-install-recommends curl ca-certificates jq iproute2 less bash-completion unzip sysstat acl net-tools iputils-ping telnet dnsutils wget vim git && \
22+ RUN ARCH=$(uname -m) && case $ ARCH in aarch64) ARCH= "arm64" ;; x86_64) ARCH= "amd64" ;; esac && echo "ARCH: " $ARCH && \
23+ apt-get update && apt-get install -y --no-install-recommends curl ca-certificates jq iproute2 less bash-completion unzip sysstat acl net-tools iputils-ping telnet dnsutils wget vim git && \
2624 curl -sLf https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl > /usr/bin/kubectl && chmod +x /usr/bin/kubectl && \
2725 git clone --branch v0.8.0 https://github.com/ahmetb/kubectx /opt/kubectx && chmod -R 755 /opt/kubectx && ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx && ln -s /opt/kubectx/kubens /usr/local/bin/kubens && \
2826 git clone --branch master --depth 1 https://github.com/ahmetb/kubectl-aliases /opt/kubectl-aliases && chmod -R 755 /opt/kubectl-aliases && \
You can’t perform that action at this time.
0 commit comments