Skip to content

Instantly share code, notes, and snippets.

@leafnode
Last active Jan 16, 2020
Embed
What would you like to do?
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