-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (28 loc) · 1.21 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
# -*- conf -*-
FROM ubuntu:14.04
MAINTAINER Maciej Pasternacki <[email protected]>
RUN groupadd -g 999 --system graphite
RUN useradd -g 999 -u 999 --system --home=/opt/graphite/storage graphite
RUN apt-get update --yes && apt-get --yes install python-dev python-pip libffi-dev libcairo2
ADD src /usr/src
ADD requirements.txt /usr/src/requirements.txt
RUN set -e -x ; \
pip install -r /usr/src/requirements.txt ; \
cd /usr/src/whisper ; python2.7 setup.py install ; \
cd /usr/src/carbon ; python2.7 setup.py install ; \
cd /usr/src/graphite-web ; python2.7 setup.py install ; python2.7 check-dependencies.py ; \
pip freeze > /usr/src/requirements-freeze.txt ; \
cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/webapp/graphite/wsgi.py
ADD carbon.conf /opt/graphite/conf/
ADD storage-schemas.conf /opt/graphite/conf/
ADD storage-aggregation.conf /opt/graphite/conf/
ADD local_settings.py /opt/graphite/webapp/graphite/
ADD env_remote_user_middleware.py /usr/local/lib/python2.7/dist-packages/
ADD carbon-cache.sh /carbon-cache
ADD graphite-web.sh /graphite-web
RUN rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
VOLUME /opt/graphite/storage
EXPOSE 2003
EXPOSE 2003/udp
EXPOSE 2004
EXPOSE 8080