This folder contains gcloud.sh
, a helper enabling developers and devops engineers to
- use a
docker
containerized gcloud command - authenticate and use multiple gcloud accounts in parallel
- use multiple gcloud projects in parallel - especially useful with gcloud's adc based authentication
- create a copy from .env.template, name it for example .env.myconfig, end edit it
- Build a gcloud based image
docker build -t $MY_GCLOUD_IMAGE .
- It's only needed locally, so don'tdocker push
it anynwhere, not to publish any sensitive data of yours! - Call it:
$ ./gcloud.sh
as follows:
$ ./gcloud.sh --help
Usage:
./gcloud.sh <subcommand>
# Where subcommand is the extension in .env.<subcommand>, which represents an isolated containerized gcloud command and contains the settings fot it.
# You might want to see an example at the .env.template file in this folder.
gcloud.sh
mainly generates docker based commands. Therefore, using it requires a working docker environment on your workstation.