hammerlab / stratotemplate

DEPRECATED: we don't really maintain this any more, we use Coclobas:
https://github.com/hammerlab/coclobas
Apache License 2.0
3 stars 0 forks source link

gcpketrew.sh -> Missing $PREFIX enviroment variable #3

Closed ihodes closed 8 years ago

ihodes commented 8 years ago

After running sh gcpketrew.sh for the first time:

sudo sh gcpketrew.sh up
<<<<<<<<
 gcpketrew.sh -> Kubectl not installed; getting it now
>>>>>>>>

Your current Cloud SDK version is: 111.0.0
Installing components from version: 111.0.0

┌─────────────────────────────────────────────┐
│     These components will be installed.     │
├─────────────────────────┬─────────┬─────────┤
│           Name          │ Version │   Size  │
├─────────────────────────┼─────────┼─────────┤
│ kubectl                 │         │         │
│ kubectl (Linux, x86_64) │   1.2.4 │ 8.2 MiB │
└─────────────────────────┴─────────┴─────────┘

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

Do you want to continue (Y/n)?

╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area                             ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: kubectl                                      ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: kubectl (Linux, x86_64)                      ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Creating backup and activating new installation          ═╣
╚════════════════════════════════════════════════════════════╝

Performing post processing steps...done.

Update done!

WARNING: There are older versions of Google Cloud Platform tools on your system PATH.
Please remove the following to avoid accidentally invoking these old tools:

/usr/bin/git-credential-gcloud.sh
/usr/bin/bq
/usr/bin/gcloud
/usr/bin/gsutil

<<<<<<<<
 gcpketrew.sh -> Missing $PREFIX enviroment variable
>>>>>>>>
smondet commented 8 years ago

$PREFIX is part of the configuration the instructions tell you to edit/source (?)

ihodes commented 8 years ago
isaachodes@ihodes-workspace:~/stratotemplate$ . configuration.env
isaachodes@ihodes-workspace:~/stratotemplate$ echo $PREFIX
ihodes-strato-pgv
isaachodes@ihodes-workspace:~/stratotemplate$ sudo sh ../gcpketrew.sh up
<<<<<<<<
 ../gcpketrew.sh -> Kubectl not installed; getting it now
>>>>>>>>

All components are up to date.
<<<<<<<<
 ../gcpketrew.sh -> Missing $PREFIX enviroment variable
>>>>>>>>
smondet commented 8 years ago

sudo needs an option (-p i think) to pass environment variables to the subprocess.

ihodes commented 8 years ago

I'm reinstalling gcp and am now able to run things without sudo, so things are looking up. Thanks!