Skip to content

Commit

Permalink
Add gcloud CLI package source before install
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksinghggits committed Nov 1, 2024
1 parent 658a5bf commit a0b3d92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /
RUN apt update && apt install -y docker-ce docker-ce-cli containerd.io \
&& apt-get clean

RUN apt-get install apt-transport-https ca-certificates gnupg
RUN apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin
RUN apt-get install apt-transport-https ca-certificates
# Add the gcloud CLI distribution URI as a package source and install plugin
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& apt-get update \
&& apt-get install -y google-cloud-sdk-gke-gcloud-auth-plugin

COPY --from=bitnami/kubectl:1.26 /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/

Expand Down

0 comments on commit a0b3d92

Please sign in to comment.