2016-05-19 16:27:41 +02:00
|
|
|
FROM centos:centos6
|
|
|
|
MAINTAINER Pandora FMS Team <info@pandorafms.com>
|
|
|
|
|
|
|
|
RUN { \
|
2016-05-20 09:39:00 +02:00
|
|
|
echo '[EPEL]'; \
|
|
|
|
echo 'name = CentOS Epel'; \
|
|
|
|
echo 'baseurl = http://dl.fedoraproject.org/pub/epel/6/x86_64'; \
|
|
|
|
echo 'enabled=1'; \
|
|
|
|
echo 'gpgcheck=0'; \
|
2018-10-26 14:36:18 +02:00
|
|
|
echo ''; \
|
|
|
|
echo '[remi-php72]'; \
|
|
|
|
echo 'name=Remi php72'; \
|
|
|
|
echo 'baseurl=http://rpms.remirepo.net/enterprise/6/php72/x86_64/'; \
|
|
|
|
echo 'enabled=1'; \
|
|
|
|
echo 'gpgcheck=0'; \
|
|
|
|
echo ''; \
|
|
|
|
echo '[remi-safe]'; \
|
|
|
|
echo 'name=Safe Remis RPM repository'; \
|
|
|
|
echo 'mirrorlist=http://cdn.remirepo.net/enterprise/$releasever/safe/mirror'; \
|
|
|
|
echo 'enabled=1'; \
|
|
|
|
echo 'gpgcheck=0'; \
|
|
|
|
echo ''; \
|
2016-05-19 16:27:41 +02:00
|
|
|
} > /etc/yum.repos.d/extra_repos.repo
|
|
|
|
|
|
|
|
RUN { \
|
2016-05-20 09:39:00 +02:00
|
|
|
echo '[artica_pandorafms]'; \
|
|
|
|
echo 'name=CentOS6 - PandoraFMS official repo'; \
|
|
|
|
echo 'baseurl=http://artica.es/centos6'; \
|
|
|
|
echo 'gpgcheck=0'; \
|
|
|
|
echo 'enabled=1'; \
|
2016-05-19 16:27:41 +02:00
|
|
|
} > /etc/yum.repos.d/pandorafms.repo
|
|
|
|
|
2016-05-20 09:39:00 +02:00
|
|
|
RUN yum -y update; yum clean all;
|
|
|
|
|
2018-10-26 14:36:18 +02:00
|
|
|
RUN yum --disablerepo=updates install -y firefox
|
|
|
|
|
2016-05-19 16:27:41 +02:00
|
|
|
# Generic dependencies
|
2016-05-20 09:39:00 +02:00
|
|
|
RUN yum install -y \
|
2016-05-23 12:15:18 +02:00
|
|
|
python-pip \
|
2016-05-24 00:23:30 +02:00
|
|
|
xorg-x11-server-Xvfb; yum clean all;
|
2016-05-19 16:27:41 +02:00
|
|
|
RUN pip install pyvirtualdisplay
|
2016-11-11 10:21:11 +01:00
|
|
|
RUN pip install 'selenium==2.53.0'
|
2016-09-19 15:24:34 +02:00
|
|
|
RUN pip install unittest2
|
2016-08-09 12:00:03 +02:00
|
|
|
RUN pip install testtools
|
2016-05-19 16:27:41 +02:00
|
|
|
|
|
|
|
# Pandora FMS Console dependencies
|
2016-05-20 09:39:00 +02:00
|
|
|
RUN yum install -y \
|
|
|
|
git \
|
|
|
|
httpd \
|
|
|
|
cronie \
|
|
|
|
ntp \
|
|
|
|
openldap \
|
|
|
|
nfdump \
|
|
|
|
wget \
|
|
|
|
curl \
|
|
|
|
openldap \
|
|
|
|
plymouth \
|
|
|
|
xterm \
|
|
|
|
php \
|
|
|
|
php-gd \
|
|
|
|
graphviz \
|
|
|
|
php-mysql \
|
|
|
|
php-pear-DB \
|
|
|
|
php-pear \
|
|
|
|
php-pdo \
|
|
|
|
php-mbstring \
|
|
|
|
php-ldap \
|
|
|
|
php-snmp \
|
|
|
|
php-ldap \
|
|
|
|
php-common \
|
|
|
|
php-zip \
|
2018-10-30 12:54:20 +01:00
|
|
|
php-xmlrpc \
|
2016-05-20 09:39:00 +02:00
|
|
|
nmap \
|
|
|
|
xprobe2 \
|
|
|
|
mysql-server \
|
2016-05-24 00:23:30 +02:00
|
|
|
mysql; yum clean all;
|
2016-05-19 16:27:41 +02:00
|
|
|
|
|
|
|
# Pandora FMS Server dependencies
|
2016-05-20 09:39:00 +02:00
|
|
|
RUN yum install -y \
|
|
|
|
ntp \
|
2018-10-26 14:36:18 +02:00
|
|
|
vim \
|
|
|
|
htop \
|
2017-10-26 12:34:22 +02:00
|
|
|
nano \
|
2016-05-20 09:39:00 +02:00
|
|
|
postfix \
|
|
|
|
wmic \
|
|
|
|
perl-HTML-Tree \
|
|
|
|
perl-DBI \
|
|
|
|
perl-DBD-mysql \
|
|
|
|
perl-libwww-perl \
|
|
|
|
perl-XML-Simple \
|
|
|
|
perl-XML-SAX \
|
|
|
|
perl-NetAddr-IP \
|
2016-08-01 11:29:32 +02:00
|
|
|
perl-Scope-Guard \
|
2016-05-20 09:39:00 +02:00
|
|
|
net-snmp \
|
|
|
|
net-tools \
|
|
|
|
perl-IO-Socket-INET6 \
|
|
|
|
perl-Socket6 \
|
|
|
|
nmap \
|
|
|
|
sudo \
|
|
|
|
xprobe2 \
|
|
|
|
make \
|
|
|
|
perl-CPAN \
|
|
|
|
perl-JSON \
|
|
|
|
net-snmp-perl \
|
|
|
|
perl-Time-HiRes \
|
|
|
|
perl-XML-Twig \
|
|
|
|
perl-Encode-Locale \
|
2016-05-23 12:15:18 +02:00
|
|
|
net-snmp-utils \
|
2018-06-20 16:04:07 +02:00
|
|
|
fontconfig \
|
|
|
|
freetype \
|
|
|
|
freetype-devel \
|
|
|
|
fontconfig-devel \
|
|
|
|
libstdc++ \
|
2016-05-24 00:23:30 +02:00
|
|
|
perl-Test-Simple; yum clean all;
|
2016-05-19 16:27:41 +02:00
|
|
|
|
2017-10-26 12:34:22 +02:00
|
|
|
RUN wget http://rpmfind.net/linux/centos/6.9/os/i386/Packages/gettext-0.17-18.el6.i686.rpm; \
|
|
|
|
yum localinstall -y gettext-0.17-18.el6.i686.rpm; \
|
2018-07-05 18:43:48 +02:00
|
|
|
rm -rf gettext-0.17-18.el6.i686.rpm; \
|
|
|
|
wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/perl-Geo-IP-1.38-1.el6.rf.x86_64.rpm; \
|
|
|
|
yum localinstall -y perl-Geo-IP-1.38-1.el6.rf.x86_64.rpm; \
|
|
|
|
rm -rf perl-Geo-IP-1.38-1.el6.rf.x86_64.rpm;
|
2017-10-26 12:34:22 +02:00
|
|
|
|
2018-06-20 16:04:07 +02:00
|
|
|
#Install phantomjs required for export graph pdf.
|
|
|
|
RUN mkdir -p /opt/phantomjs/bin && cd /opt/phantomjs/bin; \
|
|
|
|
wget https://netcologne.dl.sourceforge.net/project/pandora/Tools%20and%20dependencies%20%28All%20versions%29/DEB%20Debian%2C%20Ubuntu/phantomjs; \
|
|
|
|
chmod +x phantomjs; \
|
|
|
|
ln -s /opt/phantomjs/bin/phantomjs /usr/bin/;
|
|
|
|
|
2017-09-04 16:19:56 +02:00
|
|
|
#Exposing ports for: HTTP, SNMP Traps, Tentacle protocol
|
|
|
|
EXPOSE 80 162/udp 41121
|