Hi Rickard,

Thanks for the reply.  I have been through that page, and I've tried those 
various ways to setup auth.  As it turned out I was using a very old 
version of packer from Debian stretch repos.  As soon as I grabbed the 
newest version I was able to see that I needed to add the service account 
user to my users IAM.  After that it works as expected using the 
environmental vars to point to the service account key file.

-Dave

On Friday, December 7, 2018 at 2:11:24 PM UTC-8, Rickard von Essen wrote:
>
> 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] <javascript:> 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] <javascript:>.
>> 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/2d0e1369-c355-4350-aa62-7e1fb7c35837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to