surveil/Dockerfile
aviau 0809e0d8fb Added docker-compose production environment
Change-Id: I3c57a3b6933e98fe20cb10e65debb6c724e48445
2015-04-23 13:05:21 -04:00

36 lines
1.3 KiB
Docker

FROM ubuntu:trusty
MAINTAINER Alexandre Viau <alexandre.viau@savoirfairelinux.com>
RUN apt-get update && apt-get install -y vim python-pip python3-pip python-dev libffi-dev libssl-dev git python-pycurl
# Surveil needs shinken (as a lib)
RUN useradd shinken && pip install https://github.com/naparuba/shinken/archive/2.2-RC1.zip
# python-surveilclient (used by surveil-init)
RUN pip install python-surveilclient
# Download packs
RUN apt-get install -y subversion && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/packs/generic-host /packs/generic-host && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/packs/linux-glance /packs/linux-glance && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/packs/linux-keystone /packs/linux-keystone && \
apt-get remove -y subversion
ADD requirements.txt surveil/requirements.txt
RUN pip install -r /surveil/requirements.txt
ADD setup.py /surveil/setup.py
ADD setup.cfg /surveil/setup.cfg
ADD README.rst /surveil/README.rst
ADD etc/surveil /etc/surveil
ADD surveil /surveil/surveil
#ADD .git /surveil/.git
ENV PBR_VERSION=PROD
# We are using develop so that the code can be mounted when in DEV.
RUN cd surveil && python setup.py develop
CMD surveil-api