pandorafms/tests/Dockerfile

127 lines
2.8 KiB
Docker
Raw Normal View History

2020-04-02 17:30:07 +02:00
FROM centos:7
2016-05-19 16:27:41 +02:00
RUN { \
2020-04-02 17:08:52 +02:00
echo '[artica_pandorafms]'; \
echo 'name=CentOS7 - PandoraFMS official repo'; \
echo 'baseurl=http://firefly.artica.es/centos7'; \
2018-10-26 14:36:18 +02:00
echo 'gpgcheck=0'; \
echo 'enabled=1'; \
2020-04-02 17:08:52 +02:00
} > /etc/yum.repos.d/pandorafms.repo
2020-04-02 17:08:52 +02:00
# Pandora FMS dependencies.
RUN yum install -y epel-release vim wget bzip2 curl && \
2020-05-18 13:46:31 +02:00
yum install -y yum-utils && \
2020-04-02 17:08:52 +02:00
yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm && \
yum-config-manager --disable mysql80-community && \
yum-config-manager --enable mysql57-community && \
yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
2020-05-18 13:46:31 +02:00
yum-config-manager --enable remi-php72 && \
2020-04-02 17:08:52 +02:00
yum install -y gtk3 python-pip \
2016-05-23 12:15:18 +02:00
python-pip \
2020-04-02 17:08:52 +02:00
firefox \
xorg-x11-server-Xvfb \
x11vnc && \
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz && \
tar xvzf geckodriver-v0.26.0-linux64.tar.gz && \
mv geckodriver /usr/bin/ && rm geckodriver-v0.26.0-linux64.tar.gz && \
pip install pyvirtualdisplay && \
pip install "selenium==3.141" && \
pip install unittest2 && \
pip install testtools && \
yum install -y git \
httpd \
cronie \
ntp \
openldap \
nfdump \
openldap \
plymouth \
xterm \
2020-04-02 17:08:52 +02:00
php \
php-gd \
graphviz \
php-mysqlnd \
php-pear-DB \
php-pear \
php-pdo \
2020-04-02 17:08:52 +02:00
php-mbstring \
php-ldap \
php-snmp \
php-ldap \
php-common \
php-zip \
php-xmlrpc \
nmap \
xprobe2 \
mysql-server \
2020-04-02 17:08:52 +02:00
mysql \
ntp \
2018-10-26 14:36:18 +02:00
htop \
nano \
postfix \
2020-04-02 17:08:52 +02:00
perl-HTML-Tree \
perl-DBI \
perl-DBD-mysql \
perl-libwww-perl \
perl-XML-Simple \
perl-XML-SAX \
perl-NetAddr-IP \
perl-Scope-Guard \
2020-04-02 17:08:52 +02:00
net-snmp \
net-tools \
perl-IO-Socket-INET6 \
perl-Socket6 \
perl-Sys-Syslog \
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++ \
2020-04-02 17:08:52 +02:00
gettext \
cpanminus && \
cpanm Geo::IP && \
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/ && \
yum update -y && \
echo -e '#!/bin/bash\nhttpd -k $1\n' > /etc/init.d/httpd && \
chmod +x /etc/init.d/httpd && \
yum clean all
2020-04-02 17:08:52 +02:00
ADD wmic /usr/bin/
2018-06-20 16:04:07 +02:00
# Install debugg dependencies.
RUN yum install -y \
php-devel \
php-pear \
gcc \
gcc-c++ \
autoconf \
2020-04-02 17:08:52 +02:00
file \
automake && \
pecl install Xdebug && \
git clone https://github.com/tideways/php-xhprof-extension && \
cd php-xhprof-extension && \
phpize && \
./configure && \
make && \
make install && \
cd .. && \
2020-04-02 17:08:52 +02:00
rm -rf php-xhprof-extension && \
yum clean all
#Exposing ports for: HTTP, SNMP Traps, Tentacle protocol
EXPOSE 80 162/udp 41121