Fixed Shinken Dockerfile apt-get update

Change-Id: I18d4e77f6a6ae4436390a03388d2dd2a1cf1c933
This commit is contained in:
aviau 2015-05-06 13:51:06 -04:00
parent 9cd8f2e48d
commit 2d742ab0da

View File

@ -2,12 +2,11 @@ FROM ubuntu:trusty
MAINTAINER Alexandre Viau <alexandre.viau@savoirfairelinux.com> 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 nagios-nrpe-server RUN apt-get update && apt-get install -y vim supervisor python-dev libffi-dev libssl-dev nagios-nrpe-server
# libffi-devand libssl-dev are for python-cryptography # libffi-devand libssl-dev are for python-cryptography
### Shinken ### Shinken
RUN apt-get install -y python-pip RUN apt-get update && apt-get install -y python-pip
RUN useradd shinken && pip install https://github.com/naparuba/shinken/archive/2.4-RC3.zip RUN useradd shinken && pip install https://github.com/naparuba/shinken/archive/2.4-RC3.zip
RUN apt-get install -y python-pycurl RUN apt-get install -y python-pycurl
RUN shinken --init RUN shinken --init
@ -21,14 +20,14 @@ RUN shinken install ws-arbiter
RUN pip install pymongo==2.8 && shinken install mod-mongodb RUN pip install pymongo==2.8 && shinken install mod-mongodb
## plugins ## plugins
RUN apt-get install -y nagios-plugins nagios-nrpe-plugin RUN apt-get update && apt-get install -y nagios-plugins nagios-nrpe-plugin
# run permissions for user `shinken` # run permissions for user `shinken`
RUN chmod u+s /usr/lib/nagios/plugins/check_icmp RUN chmod u+s /usr/lib/nagios/plugins/check_icmp
RUN chmod u+s /bin/ping RUN chmod u+s /bin/ping
RUN chmod u+s /bin/ping6 RUN chmod u+s /bin/ping6
# Download plugins # Download plugins
RUN apt-get install -y subversion && \ RUN apt-get update && 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-glance /plugins/check_glance && \
svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/plugins/check-keystone /plugins/check_keystone && \ svn checkout https://github.com/savoirfairelinux/monitoring-tools/trunk/plugins/check-keystone /plugins/check_keystone && \
apt-get remove -y subversion apt-get remove -y subversion