Skip to content
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