mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 08:31:55 +00:00
2
Process management
Kristóf Tóth edited this page 2019-12-19 16:11:24 +01:00
The challenge image's default command (specified by CMD
in the baseimage Dockerfile
) starts the supervisor daemon which manages every relevant process in the container, including the custom web service. ProcessHandler provides an interface to this daemon over the TFW messaging system, and as a result, you are in control of the lifetime of spawned processes. Moreover, you can retrieve (ProcessLogHandler) their outputs from stderr
and stdout
, respectively.
Regarding exercises, this means that you can easily restart your services after the user edited their source code / configuration files, etc.
Available commands: