Improve handling of the node container
- name the container and re-use it for all similar services
- should the container time out eventually, e.g. if a
gulp watch
is running and was left behind?
gulp watch
is running and was left behind?Problem being that pressing ctrl-c
will kill the bash script but not the process inside the container.
An additional problem is that when attaching to the container from the console you see that gulp is running as PID 1 and /bin/sh
doesn't allow the PID 1 to be killed.
Solution: using docker run -it --init ..
will solve this because docker starts a little Tini
as PID 1 and then gulp will be a hight PID which will then receive the SIGTERM.
mentioned in commit db501bd0
closed