« Back to Index
Dockerfile that demonstrates how to use Supervisord.org
View original Gist on GitHub
Dockerfile.sh
FROM golang:1.5-onbuild
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install supervisor && \
mkdir -p /var/log/supervisor && \
mkdir -p /etc/supervisor/conf.d
ADD supervisor/supervisor.conf /etc/supervisor.conf
ADD supervisor/godo-watch.conf /etc/supervisor/conf.d/godo-watch.conf
RUN ["go", "get", "-u", "gopkg.in/godo.v1/cmd/godo"]
CMD ["supervisord", "-c", "/etc/supervisor.conf"]
godo-watch.conf
[program:godo]
command=/bin/bash -c "cd ~/go/src/foo-project && /go/bin/godo watch-server --watch"
supervisor.conf
[supervisord]
nodaemon=true
[include]
files = /etc/supervisor/conf.d/*.conf