Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Re-organizing some of the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajiv Bharadwaja committed Nov 9, 2017
1 parent c422b10 commit a14ae52
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions google/datalab/contrib/pipeline/composer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
# We remove the local installation and install a version that allows custom repositories.
sudo apt-get -y remove google-cloud-sdk

# If an installation still exists after executing apt-get remove, try the following:
# gcloud info --format="value(installation.sdk_root)"
# that'll give you the installation directory of whichever installation gets executed
# you can remove that entire directory
# restart shell, rinse and repeat until gcloud is no longer on your path
# you might have to clean up your PATH in .bashrc and nuke the .config/gcloud directory

# Hopefully by now the machine is clean, so install gcloud
curl https://sdk.cloud.google.com | CLOUDSDK_CORE_DISABLE_PROMPTS=1 bash

# Recycling shell to pick up the new gcloud.
exec -l $SHELL

# These have to be set here and not on the top of the scrippt because we recycle the shell somewhere
# These have to be set here and not on the top of the script because we recycle the shell somewhere
# between the start of this script and here.
PROJECT=${1:-cloud-ml-dev}
EMAIL=${2:-rajivpb@google.com}
Expand All @@ -27,9 +35,3 @@ gcloud alpha composer environments create $ENVIRONMENT
gcloud alpha composer environments describe $ENVIRONMENT


# To un-install gcloud:
# gcloud info --format="value(installation.sdk_root)"
# that'll give you the installation directory of whichever installation gets executed
# you can remove that entire directory
# restart shell, rinse and repeat until gcloud is no longer on your path
# you might have to clean up your PATH in .bashrc and nuke the .config/gcloud directory

0 comments on commit a14ae52

Please sign in to comment.