Created
December 21, 2021 04:15
-
-
Save adamlaz/b3eb71dcfe9bc51724efe211a78c59d7 to your computer and use it in GitHub Desktop.
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
# Install Google Cloud SDK and Components | |
printHeading "Install Google Cloud SDK and Components" | |
printStep "Google Cloud SDK" "brew install --cask google-cloud-sdk" | |
printDivider | |
echo "✔ Prepping Autocompletes and Paths" | |
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" | |
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" | |
printDivider | |
if [ -e ~/google-cloud-sdk ]; then | |
echo "✔ ~/google-cloud-sdk exists. Skipping" | |
else | |
echo "✔ Creating ~/google-cloud-sdk symlink" | |
ln -s "$(brew --prefix)/Caskroom/google-cloud-sdk" ~/google-cloud-sdk &>/dev/null | |
# make a convenience symlink at the install path for google-cloud-sdk when installed manually | |
fi | |
printStep "App Engine - Go" "gcloud components install app-engine-go --quiet" | |
printStep "App Engine - Python" "gcloud components install app-engine-python --quiet" | |
printStep "App Engine - Python Extras" "gcloud components install app-engine-python-extras --quiet" | |
printStep "Kubectl" "gcloud components install kubectl --quiet" | |
printStep "Docker Credentials" "gcloud components install docker-credential-gcr --quiet" | |
printDivider |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment