Open barakbd opened 3 years ago
If adding a watcher is not feasible, please advise on the proper steps to:
This way, a watcher outside of the docker container could send a command to the running container to restart the process.
Any updates on this? This is a huge impediment to local development.
+1 this is very much a basic, needed feature that I'm surprised was not included from the start
We are using
public.ecr.aws/lambda/python:3.8
which usesrie
as an entrypoint. We use docker as a local development environment, so we do not need to setup a python virtualenv and avoid "it works on my machine" errors. We map the source code into the container using a volume and at the moment the only way to get the container to the run the latest changes, isdocker-compose restart CONTAINER-NAME
.This is not ideal and we would appreciate having a
--watch
flag added torie
such that we could add it to the docker-composecommand
option, e.g.["app.handler", "--watch"]
. This flag would rerun the server inside the container upon changes, similar to Flask'srunserver
.