Merge "Added Surveil to Dockerfile"
This commit is contained in:
commit
4a2dff9c96
15
Dockerfile
15
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user