Skip to content

Instantly share code, notes, and snippets.

@leafnode
Last active January 16, 2020 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leafnode/6ae187d472207afe0a53724fa55387d5 to your computer and use it in GitHub Desktop.
Save leafnode/6ae187d472207afe0a53724fa55387d5 to your computer and use it in GitHub Desktop.
Google Cloud SDK in docker container support
# one-liner: RUN curl -sSL https://sdk.cloud.google.com | bash
# Downloading gcloud package
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
# Installing the package
RUN mkdir -p /usr/local/gcloud \
&& tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \
&& /usr/local/gcloud/google-cloud-sdk/install.sh
# Adding the package path to local
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment