getting an image from the container registry is ac...
# google-cloud
s
getting an image from the container registry is actually a huge pain
g
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
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
The second argument
InvokeOptions
takes a
provider
.
s
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>