surveil/tools/docker/shinken_container/Dockerfile
aviau 49acd76e6e Shinken: Updated to 2.4-RC3
Change-Id: Ie1a7f1e9cd7283bf8f9e1918d64488799ccb036e
2015-04-22 09:11:58 -04:00

58 lines
1.6 KiB
Docker

FROM ubuntu:trusty
MAINTAINER Alexandre Viau <alexandre.viau@savoirfairelinux.com>
RUN apt-get update
RUN apt-get update && apt-get install -y vim supervisor python-dev libffi-dev libssl-dev
# libffi-devand libssl-dev are for python-cryptography
### Shinken
RUN apt-get install -y python-pip
RUN useradd shinken && pip install https://github.com/naparuba/shinken/archive/2.4-RC3.zip
RUN apt-get install -y python-pycurl
RUN shinken --init
## modules
RUN shinken install webui
RUN shinken install auth-cfg-password
RUN pip install influxdb && shinken install mod-influxdb
RUN shinken install ws-arbiter
RUN pip install pymongo==2.8 && shinken install mod-mongodb
## plugins
RUN apt-get install -y nagios-plugins
# run permissions for user `shinken`
RUN chmod u+s /usr/lib/nagios/plugins/check_icmp
RUN chmod u+s /bin/ping
RUN chmod u+s /bin/ping6
# Download plugins
RUN apt-get install -y subversion && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/plugins/check-glance /plugins/check_glance && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/plugins/check-keystone /plugins/check_keystone && \
apt-get remove -y subversion
## Install plugins dependencies
RUN pip install shinkenplugins python-keystoneclient python-glanceclient
## Install Plugins
RUN cd /plugins/check_glance && sudo pip install --upgrade .
RUN cd /plugins/check_keystone && sudo pip install --upgrade .
## configuration
RUN rm -rf /etc/shinken
ADD etc/shinken /etc/shinken
RUN chown -R root:shinken /etc/shinken
### Supervisor
ADD etc/supervisor /etc/supervisor
# Shinken WEBUI
EXPOSE 7767
# ws-arbiter
EXPOSE 7760
CMD /usr/bin/supervisord