https://pulumi.com logo
#google-cloud
Title
# google-cloud
s

square-rose-64819

04/08/2020, 9:34 PM
getting an image from the container registry is actually a huge pain
g

gentle-diamond-70147

04/08/2020, 11:13 PM
Hey, sorry for the trouble you're having...
I think one thing to try is to create an explicit docker provider (e.g.
pulumi.docker.Provider()
with
registryAuth
) and pass that to your
new docker.RemoteImage(...,{},{provider: gcrDockerProvider})
.
registryAuth
filled out like in your Terraform link should provide the necessary authentication for the Docker provider/daemon to connect to GCR correctly.
Here's an example. I can successfully
pulumi up
this, but not sure if this is the full use case you're trying.
s

square-rose-64819

04/09/2020, 12:35 AM
i think this is right, thanks for the help
i'm trying this out
@gentle-diamond-70147 this seems like it should work, but its unclear how to get this to work with
docker.getRegistryImage
it doesn't accept a provider parameter
g

gentle-diamond-70147

04/09/2020, 1:20 AM
The second argument
InvokeOptions
takes a
provider
.
s

square-rose-64819

04/09/2020, 1:28 AM
ah you're right, i missed that. thanks!
looks like we're getting somewhere
Copy code
Synchronous call made to "docker:index/getRegistryImage:getRegistryImage" with an unregistered provider. This is now deprecated and may cause the program to hang.
    For more details see: <https://www.pulumi.com/docs/troubleshooting/#synchronous-call>