A lightweight Docker image running Supervisor on Alpine Linux to monitor processes. Supervisor makes it easy to run and monitor multiple processes.
An onbuild
image can be used to copy the supervisord.conf
to container.
Pulling the images from Dockerhub:
docker pull enil/alpine-supervisord
docker pull enil/alpine-supervisord-onbuild
supervisord
needs a configuration file to run, by default the container looks at
/etc/supervisord.conf
.
A Dockerfile
could look like this:
FROM enil/alpine-supervisord
COPY supervisord.conf /etc/supervisord.conf
Then build and run the image:
docker build -t mysupervisord .
docker run -d mysupervisord
The enil/alpine-supervisord-onbuild
image simplifies the process by adding an ONBUILD
task to copy a configuration
file called supervisord.conf
in the same directory as the Dockerfile
.
This further simplifies the Dockerfile
:
FROM enil/alpine-supervisord
- Upgrade Alpine Linux to v3.4
- Upgrade Python to v2.7.12
- Upgrade pip to v.8.1.2
- Upgrade Supervisor to v3.3.0
- Change Dockerfile to 1.9 syntax to work on Dockerhub
- Initial release