-
-
Save david-zw-liu/a473811f974227e1fee94ef6b0f90a85 to your computer and use it in GitHub Desktop.
Download and install latest google-cloud-sdk on Alpine
This file contains hidden or 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
#!/bin/sh -e | |
###### | |
# Tested with various flavors of Alpine, Ubuntu and Debian. CentOS / RedHat not supported (yet). | |
# Use: | |
# wget -qO- https://gist.githubusercontent.com/david-zw-liu/a473811f974227e1fee94ef6b0f90a85/raw | sh | |
###### | |
export SDK_DIR=/usr/local/lib | |
apk update && apk add wget curl python3 ca-certificates || true | |
wget -qO- "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz" | tar xzf - -C $SDK_DIR | |
/usr/local/lib/google-cloud-sdk/install.sh --quiet | |
echo "Please run: export PATH=$SDK_DIR/google-cloud-sdk/bin:\$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment