-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from scline/1.2.11-centos8
1.2.11
- Loading branch information
Showing
41 changed files
with
61,695 additions
and
56,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Mac Files | ||
.DS_Store | ||
docker-compose.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
FROM centos:7 | ||
FROM centos:8 | ||
MAINTAINER Sean Cline <[email protected]> | ||
|
||
## --- SUPPORTING FILES --- | ||
COPY cacti /cacti_install | ||
|
||
## --- CACTI --- | ||
## --- UPDATE OS, INSTALL EPEL --- | ||
RUN \ | ||
rpm --rebuilddb && yum clean all && \ | ||
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 \ | ||
rrdtool net-snmp net-snmp-utils cronie php-ldap php-devel mysql php \ | ||
ntp bison php-cli php-mysql php-common php-mbstring php-snmp curl \ | ||
php-gd openssl openldap mod_ssl php-pear net-snmp-libs php-pdo \ | ||
autoconf automake gcc gzip help2man libtool make net-snmp-devel \ | ||
m4 libmysqlclient-devel libmysqlclient openssl-devel dos2unix wget \ | ||
sendmail mariadb-devel which && \ | ||
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 | ||
|
||
## --- CRON --- | ||
# Fix cron issues - https://github.com/CentOS/CentOS-Dockerfiles/issues/31 | ||
RUN sed -i '/session required pam_loginuid.so/d' /etc/pam.d/crond | ||
## --- 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 | ||
|
@@ -31,17 +41,20 @@ COPY settings /settings | |
|
||
## --- SCRIPTS --- | ||
COPY upgrade.sh /upgrade.sh | ||
RUN chmod +x /upgrade.sh | ||
COPY restore.sh /restore.sh | ||
RUN chmod +x /restore.sh | ||
COPY backup.sh /backup.sh | ||
RUN chmod +x /backup.sh | ||
RUN mkdir /backups | ||
RUN mkdir /cacti | ||
RUN mkdir /spine | ||
|
||
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 \ | ||
|
@@ -57,13 +70,12 @@ ENV \ | |
RDB_PORT=3306 \ | ||
BACKUP_RETENTION=7 \ | ||
BACKUP_TIME=0 \ | ||
SNMP_COMMUNITY=public \ | ||
REMOTE_POLLER=0 \ | ||
INITIALIZE_DB=0 \ | ||
INITIALIZE_INFLUX=0 \ | ||
TZ=UTC \ | ||
PHP_MEMORY_LIMIT=800M \ | ||
PHP_MAX_EXECUTION_TIME=60 | ||
PHP_MAX_EXECUTION_TIME=60 \ | ||
PHP_SNMP=1 | ||
|
||
## --- Start --- | ||
COPY start.sh /start.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
<VirtualHost *:80> | ||
DocumentRoot /cacti | ||
ServerName cacti | ||
Alias /cacti /cacti | ||
<Directory "/cacti"> | ||
Require all granted | ||
</Directory> | ||
DocumentRoot /cacti | ||
Alias /cacti /cacti | ||
RedirectMatch ^/$ /cacti | ||
<Directory "/cacti"> | ||
Require all granted | ||
</Directory> | ||
</VirtualHost> | ||
|
||
|
||
<VirtualHost *:443> | ||
DocumentRoot /cacti | ||
Alias /cacti /cacti | ||
RedirectMatch ^/$ /cacti | ||
<Directory "/cacti"> | ||
Require all granted | ||
</Directory> | ||
SSLEngine On | ||
SSLCertificateFile /etc/ssl/certs/cacti.crt | ||
SSLCertificateKeyFile /etc/ssl/certs/cacti.key | ||
</VirtualHost> |
Oops, something went wrong.