-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (31 loc) · 1.32 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
31
32
33
34
35
36
37
38
39
40
FROM centos:7
CMD ["/start.sh"]
RUN \
yum install -y epel-release && \
yum install -y \
gcc \
pycairo \
python-devel \
python-django-tagging \
python-gunicorn \
python-pip \
pytz \
supervisor && \
yum clean all
ENV GRAPHITE_VERSION=0.9.15
RUN \
pip install "Twisted>=11,<12" && \
pip install "whisper==${GRAPHITE_VERSION}" && \
pip install --install-option="--prefix=/var/lib/graphite" --install-option="--install-lib=/var/lib/graphite/lib" "carbon==${GRAPHITE_VERSION}" && \
pip install --install-option="--prefix=/var/lib/graphite" --install-option="--install-lib=/var/lib/graphite/webapp" "graphite-web==${GRAPHITE_VERSION}" && \
rm -fr /root/.cache
RUN \
mv /var/lib/graphite/conf/carbon.conf.example /var/lib/graphite/conf/carbon.conf && \
mv /var/lib/graphite/conf/storage-schemas.conf.example /var/lib/graphite/conf/storage-schemas.conf && \
mv /var/lib/graphite/webapp/graphite/local_settings.py.example /var/lib/graphite/webapp/graphite/local_settings.py && \
cd /var/lib/graphite/webapp/graphite && \
python manage.py syncdb --noinput
COPY files/var/lib/graphite/conf/storage-aggregation.conf /var/lib/graphite/conf/storage-aggregation.conf
COPY files/etc/supervisord.conf /etc/supervisord.conf
COPY files/start.sh /start.sh
VOLUME ["/var/lib/graphite/storage", "/var/log"]