This repo is a minimal reproduction of a bug in pulumi-docker 4.x.
- Clone this repo
- Run
pulumi up
- Alter not-ok/api/src/foo.py and replace "bar" with "baz"
- Run
pulumi up
again
Pulumi should show a diff on the image and update the image.
No diff. The image is not updated.
You can follow these steps to verify that Docker does pick up the changes:
docker build --tag pulumi-docker-bug . --target not-ok && \
docker run --rm -it pulumi-docker-bug
Should initally print "bar".
Then edit foo.py and replace "bar" with "baz" again.
Rerun the above command and it should print "baz".