代码拉取完成,页面将自动刷新
FROM centos:8
MAINTAINER <zhangpengzhan456@126.com>
## --- SUPPORTING FILES ---
COPY cacti /cacti_install
## --- UPDATE OS, INSTALL EPEL ---
RUN \
yum update -y && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y dnf-plugins-core && \
yum config-manager --set-enabled PowerTools && \
yum clean all
## --- PHP EXTENTIONS ---
RUN \
yum install -y \
php php-xml php-session php-sockets php-ldap php-gd \
php-json php-mysqlnd php-gmp php-mbstring php-posix \
php-snmp php-intl php-common php-cli php-devel php-pear \
php-pdo && \
yum clean all
## --- CACTI/SPINE Requirements ---
RUN \
yum install -y \
rrdtool net-snmp net-snmp-utils cronie mariadb autoconf \
bison openssl openldap mod_ssl net-snmp-libs automake \
gcc gzip libtool make net-snmp-devel dos2unix m4 which \
openssl-devel mariadb-devel sendmail curl wget help2man && \
yum clean all
## --- SERVICE CONFIGS ---
COPY configs /template_configs
COPY configs/crontab /etc/crontab
## --- SETTINGS/EXTRAS ---
COPY plugins /cacti_install/plugins
COPY templates /templates
COPY settings /settings
## --- SCRIPTS ---
COPY upgrade.sh /upgrade.sh
COPY restore.sh /restore.sh
COPY backup.sh /backup.sh
RUN \
chmod +x /upgrade.sh && \
chmod +x /restore.sh && \
chmod +x /backup.sh && \
mkdir /backups && \
mkdir /cacti && \
mkdir /spine
## -- MISC SETUP --
RUN echo "ServerName localhost" > /etc/httpd/conf.d/fqdn.conf
RUN /usr/libexec/httpd-ssl-gencerts
## --- ENV ---
ENV \
DB_NAME=cacti \
DB_USER=cacti \
DB_PASS=123456 \
DB_HOST=172.16.186.141 \
DB_PORT=3306 \
RDB_NAME=cacti \
RDB_USER=cacti \
RDB_PASS=123456 \
RDB_HOST=172.16.186.141 \
RDB_PORT=3306 \
CACTI_URL_PATH=cacti \
BACKUP_RETENTION=7 \
BACKUP_TIME=0 \
REMOTE_POLLER=0 \
INITIALIZE_DB=0 \
TZ=UTC \
PHP_MEMORY_LIMIT=800M \
PHP_MAX_EXECUTION_TIME=60 \
PHP_SNMP=1
## --- Start ---
COPY start.sh /start.sh
CMD ["/start.sh"]
EXPOSE 80 443
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。