-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authenticating with env var #152
Comments
the credentials used by There is an override of gcloud using
(perhaps an image witht that default config value set to a volume or secret mount for the certs in k8s?) though not what you're asking in this issue, for completeness, i'll just mention the override for the full config folder with env.var:
|
one other thing: you can predefine a configuration and set it with that is, then both together:
|
I guess we can just skip the Just need a writeable directory mounted at
where
and
|
I wrapped it here: https://github.com/messari/docker-google-cloud-sdk-auth-wrapper thanks @salrashid123 |
glad it worked; I'll add the instruction set for the alternative to this repo's main README.md here |
Thanks @jotto! Spent hours trying to figure this out. |
Sorry to comment on an old thread, but it does come up in search.
|
Thanks to @leriel it worked. Makefile
Note: yout can call make list on the bash. |
Is there a way to authenticate with a single service-account JSON file?
I understand the docs suggest using
docker run -ti --name gcloud-config google/cloud-sdk gcloud auth login
but this seems antithetical to Docker or k8 style config since it creates several files in the mounted volume. Further, k8 on AWS doesn't allowReadWriteMany
.I've tried setting the
GOOGLE_APPLICATION_CREDENTIALS
env var to a file mounted into the container but this doesn't work (with thebq
CLI at least).The text was updated successfully, but these errors were encountered: