Hi folks, another question from me: My goal is to...
# general
r
Hi folks, another question from me: My goal is to enable devs to build docker images, and run them locally with docker-compose up. This works in general, but the feature they want is hot-reloading. Docker-compose will allow you to specify volume-mounts which redirect to a local directory, and eg FastAPI with --reloadable wiill detect changes and auto-reload. I thought I'd be able to solve this with layered pex, by building pex-binaries with layout="packed" and then mapping over the directory; however this doesn't work since pex will unzip the source files and run in another folder, eg
/root/.cache/pex/unzipped_pexes/0/f01a2c295249b760f584ba7258ab3eac0f740096/my_app/my_server.py
where the hash isn't really predictable. Is there a way to disable this behaviour in pex? I tried a bunch of flags but nothing seemed to work. My high level goal is still to enable the devs to use this workflow with minimal changes required on their side, but if there's another workflow that will achieve something similar, we're open to that as well. Seems like this will be a sticking point with them...