How credentials for GCE is loaded is described here https://packer.io/docs/builders/googlecompute.html#precedence-of-authentication-methods
On Fri, Dec 7, 2018, 18:19 <[email protected] wrote: > Hi > > I'm trying to get GCE Authentication working with packer inside a docker > container. Currently, I'm creating a build container based on Debian 9.4 > and to this container I add packer and gcloud. The installs go fine as > does the gcloud init. But, the only way I get 'packer build' commands to > succeed is if I use -var account_file=path/to/my/service_account.json on > the command line too. I'd like to set things up in my container to not > require passing the account file location in on command line or to hard > code the path to the file in my packer.json config file. I know this is > possible, as it works on my laptop and other places, but for some reason > not in docker. Any suggestions? > > Thanks, > Dave > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/9b8e5d66-5e71-4884-9af8-03a92a99980e%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/9b8e5d66-5e71-4884-9af8-03a92a99980e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt9nYgWic7e0xpTz5jADxF5No%2B9tRT%2BvHXnNBe4%3Do9jDNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
