Skip to content

Commit

Permalink
fix(kube-shell) make these tools match the api server [EE-6681] (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
hookenz authored Feb 21, 2024
1 parent 4008380 commit aebca3f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions kube-shell/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,23 @@ ARG ALPINE=alpine:latest
FROM ${ALPINE} as alpine
ARG ARCH

ARG KUBECTL_VERSION=v1.29.0
ARG HELM_VERSION=v3.13.3

RUN apk add -U --no-cache bash bash-completion curl jq

# Kubectl CLI
ARG KUBECTL_VERSION=v1.28.1
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl && \
echo -e 'source /usr/share/bash-completion/bash_completion\nsource <(kubectl completion bash)' >>~/.bashrc

# Helm
ARG HELM_VERSION=v3.12.3
RUN curl -L https://get.helm.sh/helm-${HELM_VERSION}-linux-${ARCH}.tar.gz | tar xvzf - && \
mv ./linux-${ARCH}/helm . && \
chmod +x ./helm && \
mv ./helm /usr/local/bin/helm

# K9s CLI
# ARG K9S_VERSION=v0.24.10
# RUN if [ "${ARCH}" = "amd64" ]; then ARCH=x86_64; fi && \
# curl -L https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_${K9S_VERSION}_Linux_${ARCH}.tar.gz | tar xvzf - && \
# chmod +x ./k9s && \
# mv ./k9s /usr/local/bin/k9s

# Linux user permissions
RUN echo 'shell:x:1000:1000:shell,,,:/home/shell:/bin/bash' > /etc/passwd && \
echo 'shell:x:1000:' > /etc/group && \
Expand Down

0 comments on commit aebca3f

Please sign in to comment.