From fb324a829ac2ea1d2c9066e7ae402e3e1ce8fcc1 Mon Sep 17 00:00:00 2001 From: John Simons Date: Mon, 14 Aug 2023 09:50:50 +1000 Subject: [PATCH] Add kubelogin --- ubuntu-2004/Dockerfile | 7 +++++++ ubuntu-2204/Dockerfile | 7 +++++++ windows-2019/Dockerfile | 3 +++ 3 files changed, 17 insertions(+) diff --git a/ubuntu-2004/Dockerfile b/ubuntu-2004/Dockerfile index 323212f..da1176a 100644 --- a/ubuntu-2004/Dockerfile +++ b/ubuntu-2004/Dockerfile @@ -14,6 +14,13 @@ RUN apt-get update && apt-get install -y git # Get latest Helm v3 RUN wget --quiet -O - https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash +# Get Kubelogin +RUN wget --quiet https://github.com/Azure/kubelogin/releases/latest/download/kubelogin-linux-amd64.zip && \ + unzip kubelogin-linux-amd64.zip -d kubelogin-linux-amd64 && \ + mv kubelogin-linux-amd64/bin/linux_amd64/kubelogin /usr/local/bin && \ + rm -rf kubelogin-linux-amd64 && \ + rm kubelogin-linux-amd64.zip + # Get EKS CLI # https://github.com/weaveworks/eksctl RUN curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && \ diff --git a/ubuntu-2204/Dockerfile b/ubuntu-2204/Dockerfile index 22360b0..7d0a247 100644 --- a/ubuntu-2204/Dockerfile +++ b/ubuntu-2204/Dockerfile @@ -14,6 +14,13 @@ RUN apt-get update && apt-get install -y git # Get latest Helm v3 RUN wget --quiet -O - https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash +# Get Kubelogin +RUN wget --quiet https://github.com/Azure/kubelogin/releases/latest/download/kubelogin-linux-amd64.zip && \ + unzip kubelogin-linux-amd64.zip -d kubelogin-linux-amd64 && \ + mv kubelogin-linux-amd64/bin/linux_amd64/kubelogin /usr/local/bin && \ + rm -rf kubelogin-linux-amd64 && \ + rm kubelogin-linux-amd64.zip + # Get EKS CLI # https://github.com/weaveworks/eksctl RUN curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && \ diff --git a/windows-2019/Dockerfile b/windows-2019/Dockerfile index 81cc697..7b0f195 100644 --- a/windows-2019/Dockerfile +++ b/windows-2019/Dockerfile @@ -10,6 +10,9 @@ RUN choco install kubernetes-cli -y --no-progress RUN choco install -y kubernetes-helm --no-progress +# Get Kubelogin +RUN choco install azure-kubelogin --no-progress -y + RUN choco install eksctl -y --no-progress RUN choco install awscli -y --no-progress