1
- ARG BASEIMAGE=alpine:3.15
1
+ ARG BASEIMAGE=alpine:3
2
2
FROM $BASEIMAGE as base
3
3
LABEL maintainer=
"Denys Zhdanov <[email protected] >"
4
4
LABEL org.opencontainers.image.source https://github.com/graphite-project/docker-graphite-statsd
@@ -49,6 +49,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
49
49
RUN true \
50
50
&& apk add --update \
51
51
alpine-sdk \
52
+ curl \
52
53
git \
53
54
pkgconfig \
54
55
wget \
@@ -62,16 +63,14 @@ RUN true \
62
63
librdkafka-dev \
63
64
mysql-dev \
64
65
postgresql-dev \
65
- && curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
66
- && python3 /tmp/get-pip.py pip==20.1.1 setuptools==50.3.2 wheel==0.35.1 && rm /tmp/get-pip.py \
67
- && pip install virtualenv==16.7.10 \
66
+ py3-pip py3-setuptools py3-wheel py3-virtualenv \
68
67
&& virtualenv -p python3 /opt/graphite \
69
68
&& . /opt/graphite/bin/activate \
70
69
&& echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so \
71
70
&& pip install \
72
71
cairocffi==1.1.0 \
73
- django==3 .2.20 \
74
- django-tagging==0.4.3 \
72
+ django==4 .2.15 \
73
+ django-tagging==0.5.0 \
75
74
django-statsd-mozilla \
76
75
fadvise \
77
76
gunicorn==20.1.0 \
@@ -83,20 +82,22 @@ RUN true \
83
82
python-ldap \
84
83
mysqlclient \
85
84
psycopg2==2.8.6 \
86
- django-cockroachdb==3 .2.*
85
+ django-cockroachdb==4 .2.*
87
86
88
- ARG version=1.1.10
87
+ ARG version=1.1.11
89
88
90
89
# install whisper
91
- ARG whisper_version=${version}
90
+ # ARG whisper_version=${version}
91
+ ARG whisper_version=master
92
92
ARG whisper_repo=https://github.com/graphite-project/whisper.git
93
93
RUN git clone -b ${whisper_version} --depth 1 ${whisper_repo} /usr/local/src/whisper \
94
94
&& cd /usr/local/src/whisper \
95
95
&& . /opt/graphite/bin/activate \
96
96
&& python3 ./setup.py install $python_extra_flags
97
97
98
98
# install carbon
99
- ARG carbon_version=${version}
99
+ # ARG carbon_version=${version}
100
+ ARG carbon_version=master
100
101
ARG carbon_repo=https://github.com/graphite-project/carbon.git
101
102
RUN . /opt/graphite/bin/activate \
102
103
&& git clone -b ${carbon_version} --depth 1 ${carbon_repo} /usr/local/src/carbon \
@@ -105,7 +106,8 @@ RUN . /opt/graphite/bin/activate \
105
106
&& python3 ./setup.py install $python_extra_flags
106
107
107
108
# install graphite
108
- ARG graphite_version=${version}
109
+ # ARG graphite_version=${version}
110
+ ARG graphite_version=master
109
111
ARG graphite_repo=https://github.com/graphite-project/graphite-web.git
110
112
RUN . /opt/graphite/bin/activate \
111
113
&& git clone -b ${graphite_version} --depth 1 ${graphite_repo} /usr/local/src/graphite-web \
@@ -114,7 +116,7 @@ RUN . /opt/graphite/bin/activate \
114
116
&& python3 ./setup.py install $python_extra_flags
115
117
116
118
# install statsd
117
- ARG statsd_version=0.10.1
119
+ ARG statsd_version=0.10.2
118
120
ARG statsd_repo=https://github.com/statsd/statsd.git
119
121
WORKDIR /opt
120
122
RUN git clone "${statsd_repo}" \
@@ -124,7 +126,7 @@ RUN git clone "${statsd_repo}" \
124
126
125
127
# build go-carbon (optional)
126
128
# https://github.com/go-graphite/go-carbon/pull/340
127
- ARG gocarbon_version=0.17.1
129
+ ARG gocarbon_version=0.17.3
128
130
ARG gocarbon_repo=https://github.com/go-graphite/go-carbon.git
129
131
RUN git clone "${gocarbon_repo}" /usr/local/src/go-carbon \
130
132
&& cd /usr/local/src/go-carbon \
@@ -152,7 +154,7 @@ COPY conf/opt/graphite/conf/* /opt/graphite/conf/
152
154
COPY conf/opt/graphite/webapp/graphite/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
153
155
WORKDIR /opt/graphite/webapp
154
156
RUN mkdir -p /var/log/graphite/ \
155
- && PYTHONPATH=/opt/graphite/webapp /opt/graphite/bin/django-admin.py collectstatic --noinput --settings=graphite.settings
157
+ && PYTHONPATH=/opt/graphite/webapp /opt/graphite/bin/django-admin collectstatic --noinput --settings=graphite.settings
156
158
157
159
# config statsd
158
160
COPY conf/opt/statsd/config/ /opt/defaultconf/statsd/config/
0 commit comments