gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Allow install scripts to take arguments to set installation parameters #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For instance, which packages to install, where to install, and where to update 
the PATH variable.

Original issue reported on code.google.com by jasm...@google.com on 4 Dec 2013 at 11:05

GoogleCodeExporter commented 9 years ago
You can already kind of do this using environment variables:

env CLOUDSDK_REINSTALL_COMPONENTS=pkg-core,pkg-python 
./google-cloud-sdk/install.sh

We use this to do a silent install of the cloud sdk for our vagrant setup. 

Original comment by jjramon...@gmail.com on 11 Mar 2014 at 3:06

GoogleCodeExporter commented 9 years ago
It's not recommended to use this env var because that makes the installer 
assume the SDK has already been previously installed.  We have added flags to 
the install script itself that allows you to specify the answers to all the 
prompts, or to disable them.  Run install.sh --help for the full list of flags.

Original comment by markp...@google.com on 12 Mar 2014 at 2:09

GoogleCodeExporter commented 9 years ago
Awesome!

Original comment by jonathan...@cloudsherpas.com on 12 Mar 2014 at 2:13