Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Google Cloud Platform SDK #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dots
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ function runDots() {
echo ""
./android.sh
fi
if [ $ARG == "gcp" ] || [ $ARG == "all" ]; then
# Run the gcp.sh Script
echo "------------------------------"
echo "Setting up GCP development environment."
echo "------------------------------"
echo ""
./gcp.sh
fi

done

echo "------------------------------"
Expand Down
27 changes: 27 additions & 0 deletions gcp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash


# This script might be run with .dots, which uses elevated privileges
sudo -K

# Make sure we’re using the latest Homebrew.
brew update

echo "------------------------------"
echo "Getting GCP SDK."
echo "------------------------------"

# https://github.com/Homebrew/homebrew-core/issues/583
brew tap caskroom/cask
brew cask install google-cloud-sdk

echo "------------------------------"
echo "Setting up GCP SDK."
echo "------------------------------"

# this will disable usage-reporting, will update PATH for SDK, enable command-completion for SDK
# --quiet will disable questions about PATH, command-completition and usage-reporting
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/install.sh --usage-reporting=false --quiet

# Remove outdated versions from the cellar.
brew cleanup