106 lines
2.0 KiB
Docker
106 lines
2.0 KiB
Docker
FROM centos:centos6
|
|
MAINTAINER Pandora FMS Team <info@pandorafms.com>
|
|
|
|
RUN { \
|
|
echo '[EPEL]'; \
|
|
echo 'name = CentOS Epel'; \
|
|
echo 'baseurl = http://dl.fedoraproject.org/pub/epel/6/x86_64'; \
|
|
echo 'enabled=1'; \
|
|
echo 'gpgcheck=0'; \
|
|
} > /etc/yum.repos.d/extra_repos.repo
|
|
|
|
RUN { \
|
|
echo '[artica_pandorafms]'; \
|
|
echo 'name=CentOS6 - PandoraFMS official repo'; \
|
|
echo 'baseurl=http://artica.es/centos6'; \
|
|
echo 'gpgcheck=0'; \
|
|
echo 'enabled=1'; \
|
|
} > /etc/yum.repos.d/pandorafms.repo
|
|
|
|
RUN yum -y update; yum clean all;
|
|
|
|
# Generic dependencies
|
|
RUN yum install -y \
|
|
firefox
|
|
python-pip
|
|
xorg-x11-server-Xvfb
|
|
RUN pip install pyvirtualdisplay
|
|
RUN pip install selenium
|
|
|
|
# Pandora FMS Console dependencies
|
|
RUN yum install -y \
|
|
git \
|
|
httpd \
|
|
cronie \
|
|
ntp \
|
|
openldap \
|
|
anytermd \
|
|
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 \
|
|
nmap \
|
|
xprobe2 \
|
|
mysql-server \
|
|
mysql; yum clean all;
|
|
|
|
# Pandora FMS Server dependencies
|
|
RUN yum install -y \
|
|
git \
|
|
cronie \
|
|
ntp \
|
|
wget \
|
|
curl \
|
|
xterm \
|
|
postfix \
|
|
wmic \
|
|
perl-HTML-Tree \
|
|
perl-DBI \
|
|
perl-DBD-mysql \
|
|
perl-libwww-perl \
|
|
perl-XML-Simple \
|
|
perl-XML-SAX \
|
|
perl-NetAddr-IP \
|
|
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 \
|
|
net-snmp \
|
|
net-snmp-utils \
|
|
perl-Test-Simple; yum clean all;
|
|
|
|
# Install geckodriver
|
|
RUN cd /tmp && \
|
|
curl -o geckodriver.tgz -L https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz && \
|
|
tar zxvf geckodriver.tgz && \
|
|
mv geckodriver /usr/bin && \
|
|
rm geckodriver.tgz
|
|
|
|
#Exposing ports for: HTTP, SNMP Traps, Anytermd (SSH), Anytermd (Telnet), Tentacle protocol
|
|
EXPOSE 80 162/udp 8022 8023 41121
|