Created
November 4, 2017 23:26
-
-
Save smetj/bb35e0bc1d1b22a695c1501892d18fac to your computer and use it in GitHub Desktop.
Docker image builds for Graphite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
MAINTAINER Jelle Smet | |
EXPOSE 2003 2004 7002 | |
RUN yum -y install python-devel cairo-devel libffi-devel wget gcc gcc-c++ python-dev bzip2 python-devel | |
RUN wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && python /tmp/get-pip.py | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/whisper/tarball/master | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/carbon/tarball/master | |
VOLUME /usr/storage/whisper | |
CMD /usr/bin/carbon-cache.py start --nodaemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
MAINTAINER Jelle Smet | |
EXPOSE 2013 2014 | |
RUN yum -y install python-devel cairo-devel libffi-devel wget gcc gcc-c++ python-dev bzip2 python-devel | |
RUN wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && python /tmp/get-pip.py | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/whisper/tarball/master | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/carbon/tarball/master | |
VOLUME /usr/storage/whisper | |
CMD /usr/bin/carbon-relay.py start --nodaemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
MAINTAINER Jelle Smet | |
EXPOSE 80 | |
RUN yum -y install python-devel cairo-devel libffi-devel wget gcc gcc-c++ python-dev bzip2 python-devel openssl | |
RUN wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && python /tmp/get-pip.py | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/whisper/tarball/master | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/";pip install --no-binary=:all: https://github.com/graphite-project/graphite-web/tarball/master | |
RUN export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/"; django-admin migrate --settings=graphite.settings | |
RUN pip install uwsgi gunicorn whitenoise django-cors-headers | |
ENV WORKERS 2 | |
CMD /usr/bin/gunicorn --pythonpath "/opt/graphite/lib/,/opt/graphite/webapp/" -w $WORKERS -b 0.0.0.0:80 --access-logfile - graphite.wsgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment