first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
22
base/cacti/1.2.28/Dockerfile
Normal file
22
base/cacti/1.2.28/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM php:7.4-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends rrdtool snmp wget ca-certificates libsnmp-dev default-mysql-client \
|
||||
wait-for-it libjpeg62-turbo-dev libpng-dev libfreetype6-dev libgmp-dev libldap2-dev libicu-dev cron
|
||||
|
||||
RUN set -ex \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo_mysql snmp gmp ldap sockets gd pcntl intl
|
||||
|
||||
RUN set -ex \
|
||||
&& wget -qO- https://files.cacti.net/cacti/linux/cacti-1.2.28.tar.gz | tar zx -C /var/www/html --strip-components 1
|
||||
|
||||
COPY config.php /var/www/html/include/config.php
|
||||
COPY cacti.ini /usr/local/etc/php/conf.d/cacti.ini
|
||||
|
||||
RUN set -ex \
|
||||
&& chown www-data:www-data -R /var/www/html \
|
||||
&& echo "* * * * * www-data php /var/www/html/poller.php &>/tmp/cron.log" >> /etc/crontab
|
Reference in New Issue
Block a user