Switched to node builder
This commit is contained in:
+11
-14
@@ -1,24 +1,21 @@
|
||||
FROM centos:7
|
||||
MAINTAINER Jonathan Ervine <jon.ervine@gmail.com>
|
||||
|
||||
RUN yum update -y -x setup && yum clean all
|
||||
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
RUN rpm --import http://packages.icinga.org/icinga.key
|
||||
RUN curl -L http://packages.icinga.org/epel/ICINGA-release.repo > /etc/yum.repos.d/ICINGA-release.repo
|
||||
RUN rpm -e --nodeps iputils
|
||||
RUN yum install -y iputils
|
||||
RUN yum makecache
|
||||
RUN yum update -y -x setup && yum clean all && \
|
||||
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
|
||||
rpm --import http://packages.icinga.org/icinga.key && \
|
||||
curl -L http://packages.icinga.org/epel/ICINGA-release.repo > /etc/yum.repos.d/ICINGA-release.repo && \
|
||||
rpm -e --nodeps iputils && \
|
||||
yum install -y iputils && \
|
||||
yum makecache && \
|
||||
yum install -y centos-release-scl icinga2 nagios-plugins-all git icinga2-ido-mysql httpd php php-intl php-theseer-fDOMDocument php-gd php-pecl-imagick php-pdo php-ZendFramework-Db-Adapter-Pdo-Mysql supervisor && \
|
||||
/usr/lib/icinga2/prepare-dirs /etc/sysconfig/icinga2 && \
|
||||
usermod -a -G icingacmd apache && \
|
||||
yum install -y icingaweb2 icingacli
|
||||
|
||||
VOLUME ["/etc/icinga2", "/etc/icingaweb2", "/var/lib/mysql", "/var/lib/icinga2"]
|
||||
|
||||
RUN yum install -y centos-release-scl icinga2 nagios-plugins-all git icinga2-ido-mysql httpd php php-intl php-theseer-fDOMDocument php-gd php-pecl-imagick php-pdo php-ZendFramework-Db-Adapter-Pdo-Mysql supervisor
|
||||
|
||||
RUN /usr/lib/icinga2/prepare-dirs /etc/sysconfig/icinga2
|
||||
RUN usermod -a -G icingacmd apache
|
||||
RUN yum install -y icingaweb2 icingacli
|
||||
|
||||
ADD start.sh /sbin/start.sh
|
||||
RUN chmod 755 /sbin/start.sh
|
||||
ADD apache.ini /etc/supervisord.d/apache.ini
|
||||
ADD icinga2.ini /etc/supervisord.d/icinga2.ini
|
||||
ADD php-fm.ini /etc/supervisord.d/php-fm.ini
|
||||
|
||||
Reference in New Issue
Block a user