Add OIDC login support and unzip utility to Dockerfile
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m50s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m50s
This commit is contained in:
parent
0613ebca66
commit
68c6789ac4
1 changed files with 10 additions and 0 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -30,6 +30,8 @@ ARG KUBECTL_VERSION=1.36.2
|
|||
ARG HELM_VERSION=3.21.2
|
||||
# renovate: datasource=github-releases depName=derailed/k9s
|
||||
ARG K9S_VERSION=0.51.0
|
||||
# renovate: datasource=github-releases depName=int128/kubelogin
|
||||
ARG OIDC_LOGIN_VERSION=1.34.0
|
||||
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
|
|
@ -49,6 +51,7 @@ RUN apt-get update \
|
|||
bash-completion \
|
||||
ca-certificates \
|
||||
curl \
|
||||
unzip \
|
||||
tar \
|
||||
nginx-light \
|
||||
netcat-openbsd \
|
||||
|
|
@ -81,6 +84,11 @@ RUN apt-get update \
|
|||
&& curl -fsSLo "/tmp/k9s_Linux_amd64.tar.gz" "https://github.com/derailed/k9s/releases/download/v${K9S_VERSION}/k9s_Linux_amd64.tar.gz" \
|
||||
&& tar -xzf "/tmp/k9s_Linux_amd64.tar.gz" -C /tmp \
|
||||
&& install -m 0755 /tmp/k9s /usr/local/bin/k9s \
|
||||
&& curl -fsSLo "/tmp/kubelogin_linux_amd64.zip" "https://github.com/int128/kubelogin/releases/download/v${OIDC_LOGIN_VERSION}/kubelogin_linux_amd64.zip" \
|
||||
&& curl -fsSLo "/tmp/kubelogin_linux_amd64.zip.sha256" "https://github.com/int128/kubelogin/releases/download/v${OIDC_LOGIN_VERSION}/kubelogin_linux_amd64.zip.sha256" \
|
||||
&& sed 's#\*kubelogin_linux_amd64.zip$#*/tmp/kubelogin_linux_amd64.zip#' /tmp/kubelogin_linux_amd64.zip.sha256 | sha256sum -c - \
|
||||
&& unzip -p /tmp/kubelogin_linux_amd64.zip kubelogin > /usr/local/bin/kubectl-oidc_login \
|
||||
&& chmod 0755 /usr/local/bin/kubectl-oidc_login \
|
||||
&& mkdir -p /etc/bash_completion.d \
|
||||
&& kubectl completion bash > /etc/bash_completion.d/kubectl \
|
||||
&& helm completion bash > /etc/bash_completion.d/helm \
|
||||
|
|
@ -93,6 +101,8 @@ RUN apt-get update \
|
|||
/tmp/k9s \
|
||||
/tmp/README.md \
|
||||
/tmp/LICENSE \
|
||||
/tmp/kubelogin_linux_amd64.zip \
|
||||
/tmp/kubelogin_linux_amd64.zip.sha256 \
|
||||
/tmp/k9s_Linux_amd64.tar.gz \
|
||||
&& rm -f /etc/ssh/ssh_host_* \
|
||||
&& apt-get clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue