diff --git a/Dockerfile.slim b/Dockerfile.slim index 6b6701b637d..52ce2c6a8b6 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -38,7 +38,7 @@ RUN [ $TARGETARCH == 'amd64' ] && export GCP_ARCH="x86_64" || export GCP_ARCH=" && rm -rf /opt/google-cloud-sdk/.install/.backup # kubectl + AWS IAM authenticator -RUN wget https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl \ +RUN wget https://cdn.dl.k8s.io/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl \ && chmod +x kubectl \ && mv ./kubectl /usr/local/bin/kubectl \ && wget -O aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_AIM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_AIM_AUTHENTICATOR_VERSION}_linux_${TARGETARCH} \ diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index 019b0e97b73..a5315b33580 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -3,8 +3,10 @@ LABEL maintainer="sig-platform@spinnaker.io" ARG TARGETARCH ENV GOOGLE_CLOUD_SDK_VERSION=412.0.0 ENV PATH "$PATH:/opt/google-cloud-sdk/bin/" +ENV KUBECTL_RELEASE=1.22.17 ENV AWS_CLI_VERSION=1.22 ENV AWS_CLI_S3_CMD=2.0.2 +ENV AWS_AIM_AUTHENTICATOR_VERSION=0.5.9 RUN apt-get update && apt-get install -y curl gnupg && \ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ @@ -14,7 +16,6 @@ RUN apt-get update && apt-get install -y curl gnupg && \ apt-get install -y \ openjdk-11-jre-headless \ wget \ - kubectl \ python3-pip \ python3 \ git \ @@ -25,9 +26,14 @@ RUN apt-get update && apt-get install -y curl gnupg && \ RUN pip install --upgrade --no-build-isolation awscli==${AWS_CLI_VERSION} s3cmd==${AWS_CLI_S3_CMD} python-magic \ && apt remove -y python3-pip -RUN curl -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.16.8/2020-04-16/bin/linux/${TARGETARCH}/aws-iam-authenticator && \ - chmod +x /usr/local/bin/aws-iam-authenticator && \ - ln -s /usr/local/bin/aws-iam-authenticator /usr/local/bin/heptio-authenticator-aws +# kubectl + AWS IAM authenticator +RUN wget https://cdn.dl.k8s.io/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl \ + && chmod +x kubectl \ + && mv ./kubectl /usr/local/bin/kubectl \ + && wget -O aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_AIM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_AIM_AUTHENTICATOR_VERSION}_linux_${TARGETARCH} \ + && chmod +x ./aws-iam-authenticator \ + && mv ./aws-iam-authenticator /usr/local/bin/aws-iam-authenticator\ + && ln -sf /usr/local/bin/aws-iam-authenticator /usr/local/bin/heptio-authenticator-aws # Google cloud SDK RUN [ $TARGETARCH == 'amd64' ] && export GCP_ARCH="x86_64" || export GCP_ARCH="arm" \