mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
fix graphite again
This commit is contained in:
@@ -5,10 +5,11 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV PATH=$PATH:/opt/graphite/bin
|
ENV GRAPHITE_VERSION=1.0.1
|
||||||
ENV PYTHONPATH=/opt/graphite/lib:/opt/graphite/webapp
|
|
||||||
ENV GRAPHITE_CONF_DIR=/opt/graphite/conf
|
ENV GRAPHITE_CONF_DIR=/opt/graphite/conf
|
||||||
ENV GRAPHITE_STORAGE_DIR=/opt/graphite/storage
|
ENV GRAPHITE_STORAGE_DIR=/opt/graphite/storage
|
||||||
|
ENV PATH=$PATH:/opt/graphite/bin
|
||||||
|
ENV PYTHONPATH=/opt/graphite/lib:/opt/graphite/webapp
|
||||||
|
|
||||||
WORKDIR /opt/graphite
|
WORKDIR /opt/graphite
|
||||||
|
|
||||||
@@ -22,9 +23,10 @@ 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 scandir supervisor whisper \
|
&& pip install gunicorn scandir supervisor whisper==$GRAPHITE_VERSION \
|
||||||
&& pip install carbon --install-option="--install-lib=/opt/graphite/lib" \
|
&& pip install -r https://github.com/graphite-project/graphite-web/raw/$GRAPHITE_VERSION/requirements.txt \
|
||||||
&& pip install graphite-web --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/webapp" \
|
&& pip install carbon==$GRAPHITE_VERSION --install-option="--install-lib=/opt/graphite/lib" \
|
||||||
|
&& pip install graphite-web==$GRAPHITE_VERSION --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/webapp" \
|
||||||
&& 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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user