forked from dockerq/docker-ganglia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (19 loc) · 895 Bytes
/
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
FROM centos:7
MAINTAINER shawn174 [email protected]
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum install -y php-common php-cli php-gb php
# install ganglia server and client
RUN yum install -y rrdtool rrdtool-devel ganglia-web ganglia-gmetad \
ganglia-gmond ganglia-gmond-python httpd apr-devel zlib-devel \
libconfuse-devel expat-devel pcre-devel
RUN mkdir -p /var/lib/ganglia && \
chown nobody:nobody /var/lib/ganglia && \
chmod 777 /var/lib/ganglia
ADD supervisord.conf /etc/supervisord.conf
RUN yum install -y python-setuptools python3-meld python-pip && \
pip install supervisor && \
yum clean all
RUN yum install -y vim && \
ln -f -s /usr/share/zoneinfo/America/Chicago /etc/localtime
ADD ganglia.conf /etc/httpd/conf.d/ganglia.conf
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]