-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (43 loc) · 2.09 KB
/
Copy pathDockerfile
File metadata and controls
55 lines (43 loc) · 2.09 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM alpine:3.8
RUN apk add --update-cache \
ca-certificates \
cairo \
libffi-dev \
py-pip \
py-twisted \
&& rm -rf /var/cache/apk/*
RUN pip install --upgrade pip \
&& pip install \
carbon \
gunicorn \
whisper
RUN apk add --update-cache --virtual=build-deps \
gcc \
python-dev \
musl-dev \
&& pip install \
graphite-web \
&& apk del build-deps \
&& rm -rf /var/cache/apk/*
RUN cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf \
&& cp /opt/graphite/conf/storage-schemas.conf.example \
/opt/graphite/conf/storage-schemas.conf \
&& cp /opt/graphite/webapp/graphite/local_settings.py.example \
/opt/graphite/webapp/graphite/local_settings.py \
&& cp /opt/graphite/conf/graphite.wsgi.example \
/opt/graphite/webapp/graphite/graphite_wsgi.py
RUN PYTHONPATH=/opt/graphite/webapp django-admin.py \
collectstatic --settings=graphite.settings --no-input \
&& PYTHONPATH=/opt/graphite/webapp django-admin.py \
makemigrations account events dashboard url_shortener \
--settings=graphite.settings \
&& PYTHONPATH=/opt/graphite/webapp django-admin.py \
migrate --settings=graphite.settings
EXPOSE 2003
EXPOSE 2004
EXPOSE 8080
VOLUME /opt/graphite/static
COPY post-setup-graphite-web.py /usr/local/bin/
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
# ENTRYPOINT ["/docker-entrypoint.sh", "--debug"]