Skip to content

Commit

Permalink
add gke-gcloud-auth-plugin to image
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid committed Jun 17, 2022
1 parent ad0ae57 commit b5133ab
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions images/gcb-docker-gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ ENV PATH=/google-cloud-sdk/bin:/workspace:${PATH} \
WORKDIR /workspace

RUN echo http://dl-cdn.alpinelinux.org/alpine/latest-stable/community >> /etc/apk/repositories && \
apk --no-cache add curl python3 py-crcmod bash libc6-compat openssh-client git gnupg docker-cli make && \
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz && \
tar xzf google-cloud-sdk.tar.gz -C / && \
rm google-cloud-sdk.tar.gz && \
/google-cloud-sdk/install.sh \
--disable-installation-options \
--bash-completion=false \
--path-update=false \
--usage-reporting=false && \
apk --no-cache add curl python3 py-crcmod bash libc6-compat openssh-client git gnupg docker-cli make

RUN curl -fsSLO https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz
RUN tar xzf google-cloud-sdk.tar.gz -C /
RUN rm google-cloud-sdk.tar.gz
RUN gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image && \
gcloud components install alpha beta gke-gcloud-auth-plugin && \
gcloud --version && \
gcloud info > /workspace/gcloud-info.txt

# Install docker Buildx for fast docker builds
Expand Down

0 comments on commit b5133ab

Please sign in to comment.