Skip to content

Instantly share code, notes, and snippets.

@simonvc
Created April 3, 2017 22:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simonvc/8fb20a5823955645806ff0783c75f37f to your computer and use it in GitHub Desktop.
Save simonvc/8fb20a5823955645806ff0783c75f37f to your computer and use it in GitHub Desktop.
Dockerfile for magnetico
FROM ubuntu:16.10
RUN apt-get update
RUN apt-get -y install python3.5 python3-pip
RUN apt-get -y install supervisor
RUN pip3 install --upgrade pip
RUN pip3 install magneticod magneticow
RUN mkdir -p /var/log/supervisor
RUN echo [supervisord] > /etc/supervisor/conf.d/supervisord.conf
RUN echo nodaemon=true >> /etc/supervisor/conf.d/supervisord.conf
RUN echo [program:magneticod] >> /etc/supervisor/conf.d/supervisord.conf
RUN echo command=/usr/local/bin/magneticod >> /etc/supervisor/conf.d/supervisord.conf
RUN echo [program:magneticow] >> /etc/supervisor/conf.d/supervisord.conf
RUN echo command=/usr/local/bin/magneticow --port 8000 --user admin password >> /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8000
CMD ["/usr/bin/supervisord"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment