Hello, When running `pulumi up` with <awsx.ecr.Im...
# aws
f
Hello, When running
pulumi up
with awsx.ecr.Image, the
Diagnostics
box would include the
docker build
steps like so:
Copy code
Diagnostics:
  awsx:ecr:Image (ind-image):
    warning: #0 building with "default" instance using docker driver
    
    #1 [internal] load .dockerignore
    #1 transferring context: 2B done
    #1 DONE 0.0s
    
    #2 [internal] load build definition from Dockerfile
    #2 transferring dockerfile: 748B done
    #2 DONE 0.0s
    
    #3 resolve image config for <http://docker.io/docker/dockerfile:1|docker.io/docker/dockerfile:1>
    #3 ...
...
But now it does not, even when using
-v 11
. I am not sure what I have changed in my development environment. How do I revert to this previous behavior?
l
Could you have updated your Docker provider from <4 to >=4? The image is now built only if the provider detects a relevant change. Previously, it was building every preview/up, which was annoying and slow.
RegistryImage and RemoteImage now have a triggers property that you can use to force a rebuild. You could put, for example, a hash of a directory, or anything that changes when you want a rebuild to happen.
f
I see, thank you for letting me know. If it is easy to do, could you please send me a relevant change-log so I can look in closer detail? It is not obvious to me where I should be looking.
l
Where you should be looking for what? The changelog?
The changelog is here: https://github.com/pulumi/pulumi-docker/releases The main decision thread is here: https://github.com/pulumi/pulumi-docker/issues/436 The tech details for this feature seem to start here: https://github.com/pulumi/pulumi-docker/pull/446
f
Thank you!