From a581406d7973e52527ecbb9a025a557dd8cfb4b1 Mon Sep 17 00:00:00 2001 From: aviau Date: Thu, 14 Aug 2014 23:05:20 -0400 Subject: [PATCH] Added Surveil to Dockerfile Change-Id: I00b735c27c4668ef57b878d83e83861c36043197 --- Dockerfile | 15 +++++++++++++++ .../docker/etc/supervisor/conf.d/supervisor.conf | 3 +++ 2 files changed, 18 insertions(+) diff --git a/Dockerfile b/Dockerfile index 14848a7..0d610fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,6 +61,21 @@ ADD tools/docker/etc/apache2/conf-enabled/influxdb.conf /etc/apache2/conf-enable ### Mongo RUN apt-get install -y mongodb +### Surveil +## Copy files +ADD surveil /surveil/surveil +ADD setup.cfg /surveil/setup.cfg +ADD requirements.txt surveil/requirements.txt +ADD setup.py /surveil/setup.py +ADD .git /surveil/.git +ADD README.rst surveil/README.rst + +## Install +RUN apt-get install -y python3-pip +RUN pip3 install -r /surveil/requirements.txt +RUN apt-get install -y git +RUN cd surveil && python3 setup.py install + ### Supervisor RUN apt-get -y install supervisor ADD tools/docker/etc/supervisor /etc/supervisor diff --git a/tools/docker/etc/supervisor/conf.d/supervisor.conf b/tools/docker/etc/supervisor/conf.d/supervisor.conf index 02d8e71..e0ac96a 100644 --- a/tools/docker/etc/supervisor/conf.d/supervisor.conf +++ b/tools/docker/etc/supervisor/conf.d/supervisor.conf @@ -15,3 +15,6 @@ command=/bin/sh -c "service riemann start" [program:mongodb] command=/bin/sh -c "service mongodb start" + +[program:surveil] +command=/bin/sh -c "pecan serve /usr/local/lib/python3.4/dist-packages/surveil/api/config.py"