Last active
January 16, 2020 08:55
-
-
Save leafnode/6ae187d472207afe0a53724fa55387d5 to your computer and use it in GitHub Desktop.
Google Cloud SDK in docker container support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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