Skip to content

Instantly share code, notes, and snippets.

Last active Jan 16, 2020
What would you like to do?
Google Cloud SDK in docker container support
# one-liner: RUN curl -sSL | bash
# Downloading gcloud package
RUN curl > /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/
# 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