2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

fix graphite

This commit is contained in:
kev
2017-06-29 18:25:48 +08:00
parent 072b6eb9e1
commit c0e3fc86bf

View File

@@ -3,7 +3,7 @@
# #
FROM alpine FROM alpine
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
ENV PATH=$PATH:/opt/graphite/bin ENV PATH=$PATH:/opt/graphite/bin
ENV PYTHONPATH=/opt/graphite/lib:/opt/graphite/webapp ENV PYTHONPATH=/opt/graphite/lib:/opt/graphite/webapp
@@ -22,12 +22,9 @@ RUN set -xe \
python \ python \
python-dev \ python-dev \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \ && curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install gunicorn \ && pip install gunicorn scandir supervisor whisper \
supervisor \ && pip install carbon --install-option="--install-lib=/opt/graphite/lib" \
https://github.com/graphite-project/whisper/tarball/master \ && pip install graphite-web --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/webapp" \
https://github.com/graphite-project/carbon/tarball/master \
https://github.com/graphite-project/graphite-web/tarball/master \
-r https://github.com/graphite-project/graphite-web/raw/master/requirements.txt \
&& cd conf \ && cd conf \
&& cp carbon.conf.example carbon.conf \ && cp carbon.conf.example carbon.conf \
&& cp storage-schemas.conf.example storage-schemas.conf \ && cp storage-schemas.conf.example storage-schemas.conf \
@@ -35,7 +32,7 @@ RUN set -xe \
&& echo "SECRET_KEY = '$(head -c 16 /dev/urandom | base64)'" > graphite/local_settings.py \ && echo "SECRET_KEY = '$(head -c 16 /dev/urandom | base64)'" > graphite/local_settings.py \
&& curl -sSL https://github.com/graphite-project/graphite-web/raw/master/webapp/manage.py > manage.py \ && curl -sSL https://github.com/graphite-project/graphite-web/raw/master/webapp/manage.py > manage.py \
&& chmod +x manage.py \ && chmod +x manage.py \
&& python manage.py migrate --run-syncdb --noinput \ && ./manage.py migrate --run-syncdb --noinput \
&& apk del build-base \ && apk del build-base \
curl \ curl \
git \ git \