-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
30 lines (25 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM million12/nginx-php:php70
MAINTAINER Przemyslaw Ozgo <[email protected]>
ENV DB_USER=user \
DB_PASS=password \
DB_ADDRESS=127.0.0.1 \
CACTI_VERSION=1.1.12 \
TIMEZONE=UTC
RUN \
rpm --rebuilddb && yum clean all && \
yum install -y rrdtool net-snmp net-snmp-devel net-snmp-utils mariadb-devel cronie dos2unix autoconf libtool libtool-ltdl-devel help2man && \
curl -L -o /tmp/cacti-${CACTI_VERSION}.tgz https://github.com/Cacti/cacti/archive/release/1.1.12.tar.gz && \
mkdir -p /cacti && tar zxvf /tmp/cacti-${CACTI_VERSION}.tgz -C /cacti --strip-components=1 && \
rm -rf /tmp/cacti-${CACTI_VERSION}.tgz && \
curl -L -o /tmp/spine-${CACTI_VERSION}.tgz https://github.com/Cacti/spine/archive/release/${CACTI_VERSION}.tar.gz && \
mkdir -p /tmp/spine && \
tar zxvf /tmp/spine-${CACTI_VERSION}.tgz -C /tmp/spine --strip-components=1 && \
rm -f /tmp/spine-${CACTI_VERSION}.tgz && \
cd /tmp/spine/ && ./bootstrap && ./configure --with-reentrant && make && make install && \
chown root:root /usr/local/spine/bin/spine && \
chmod +s /usr/local/spine/bin/spine && \
rm -rf /tmp/spine && \
yum remove -y gcc mariadb-devel net-snmp-devel && \
yum clean all
COPY container-files /
EXPOSE 80 81 443