1 Star 0 Fork 0

rambo/docker-cacti

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
rambo 提交于 2020-09-18 08:58 . new add code
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Coding-01/docker-cacti.git
git@gitee.com:Coding-01/docker-cacti.git
Coding-01
docker-cacti
docker-cacti
master

搜索帮助