Skip to content

Commit b5972e2

Browse files
dep: Upgrade kubectx from v0.8.0 to v0.9.3.
1 parent 834c4f3 commit b5972e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ RUN ARCH=$(uname -m) && case $ARCH in aarch64) ARCH="arm64";; x86_64) ARCH="amd6
2121
echo > /etc/apk/repositories && echo -e "https://dl-cdn.alpinelinux.org/alpine/latest-stable/main\nhttps://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories && \
2222
apk update && apk upgrade && apk add --update --no-cache bash bash-completion curl git wget openssl iputils busybox-extras vim && sed -i "s/nobody:\//nobody:\/nonexistent/g" /etc/passwd && \
2323
curl -sLf https://storage.googleapis.com/kubernetes-release/release/v1.20.5/bin/linux/${ARCH}/kubectl > /usr/bin/kubectl && chmod +x /usr/bin/kubectl && \
24-
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 && \
2524
git clone --branch master --depth 1 https://github.com/ahmetb/kubectl-aliases /opt/kubectl-aliases && chmod -R 755 /opt/kubectl-aliases && \
2625
git clone --branch 0.21.0 --depth 1 https://github.com/junegunn/fzf /opt/fzf && chmod -R 755 /opt/fzf && /opt/fzf/install && ln -s /opt/fzf/bin/fzf /usr/local/bin/fzf && \
27-
if [[ $ARCH == arm* ]]; then K9S_ARCH=arm64; else K9S_ARCH=x86_64; fi && echo $K9S_ARCH && \
28-
mkdir -p /tmp/k9s && cd /tmp/k9s && wget https://github.com/derailed/k9s/releases/download/v0.24.7/k9s_Linux_${K9S_ARCH}.tar.gz && tar -xvf k9s_Linux_${K9S_ARCH}.tar.gz && chmod +x k9s && mv k9s /usr/bin && \
26+
if [[ $ARCH == arm* ]]; then ARCH=arm64; else ARCH=x86_64; fi && echo $ARCH && \
27+
cd /tmp/ && wget https://github.com/derailed/k9s/releases/download/v0.24.7/k9s_Linux_${ARCH}.tar.gz && tar -xvf k9s_Linux_${ARCH}.tar.gz && chmod +x k9s && mv k9s /usr/bin && \
28+
KUBECTX_VERSION=v0.9.3 && wget https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubens_${KUBECTX_VERSION}_linux_${ARCH}.tar.gz && tar -xvf kubens_${KUBECTX_VERSION}_linux_${ARCH}.tar.gz && chmod +x kubens && mv kubens /usr/bin && \
29+
wget https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubectx_${KUBECTX_VERSION}_linux_${ARCH}.tar.gz && tar -xvf kubectx_${KUBECTX_VERSION}_linux_${ARCH}.tar.gz && chmod +x kubectx && mv kubectx /usr/bin && \
2930
curl -L https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash && \
3031
chmod +x /usr/bin/gotty && chmod 555 /bin/busybox && \
3132
apk del git curl && rm -rf /tmp/* /var/tmp/* /var/cache/apk/* && \

0 commit comments

Comments
 (0)