Merge "Added Surveil to Dockerfile"

This commit is contained in:
Jenkins 2014-08-15 03:48:57 +00:00 committed by Gerrit Code Review
commit 4a2dff9c96
2 changed files with 18 additions and 0 deletions

View File

@ -61,6 +61,21 @@ ADD tools/docker/etc/apache2/conf-enabled/influxdb.conf /etc/apache2/conf-enable
### Mongo ### Mongo
RUN apt-get install -y mongodb 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 ### Supervisor
RUN apt-get -y install supervisor RUN apt-get -y install supervisor
ADD tools/docker/etc/supervisor /etc/supervisor ADD tools/docker/etc/supervisor /etc/supervisor

View File

@ -15,3 +15,6 @@ command=/bin/sh -c "service riemann start"
[program:mongodb] [program:mongodb]
command=/bin/sh -c "service mongodb start" 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"