Is it possible to detect when Pulumi is running in watch mode to change resource behavior? For example, could a custom docker image resource be made that detects when Pulumi is running in watch mode and whenever there’s a change to source files, instead of rebuilding the image it syncs the files through a volume, allowing for stuff like hot-reloading? This would not be dissimilar from what Tilt and Skaffold allow you to do.
01/08/2020, 5:32 PM
Yes, that should be possible. Can you file an issue in pulumi/pulumi?