x86_64-centos-icinga2/Dockerfile
Jonny Ervine 52aef81c6e new file: Dockerfile
new file:   Jenkinsfile
	new file:   apache.ini
	new file:   hosts.conf
	new file:   icinga2.ini
	new file:   php-fm.ini
	new file:   services.conf
	new file:   start.sh
	new file:   supervisord.conf
Initial commit
2020-02-19 06:35:46 +00:00

30 lines
1.1 KiB
Docker

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
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
ADD supervisord.conf /etc/supervisord.conf
EXPOSE 80 443 5665 9001
ENTRYPOINT ["/sbin/start.sh"]