Skip to content

Commit f7a1cd2

Browse files
committed
Preparing for 1.1.11
1 parent 2ffaebf commit f7a1cd2

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

Diff for: Dockerfile

+16-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASEIMAGE=alpine:3.15
1+
ARG BASEIMAGE=alpine:3
22
FROM $BASEIMAGE as base
33
LABEL maintainer="Denys Zhdanov <[email protected]>"
44
LABEL org.opencontainers.image.source https://github.com/graphite-project/docker-graphite-statsd
@@ -49,6 +49,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
4949
RUN true \
5050
&& apk add --update \
5151
alpine-sdk \
52+
curl \
5253
git \
5354
pkgconfig \
5455
wget \
@@ -62,16 +63,14 @@ RUN true \
6263
librdkafka-dev \
6364
mysql-dev \
6465
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 \
6867
&& virtualenv -p python3 /opt/graphite \
6968
&& . /opt/graphite/bin/activate \
7069
&& echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so \
7170
&& pip install \
7271
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 \
7574
django-statsd-mozilla \
7675
fadvise \
7776
gunicorn==20.1.0 \
@@ -83,20 +82,22 @@ RUN true \
8382
python-ldap \
8483
mysqlclient \
8584
psycopg2==2.8.6 \
86-
django-cockroachdb==3.2.*
85+
django-cockroachdb==4.2.*
8786

88-
ARG version=1.1.10
87+
ARG version=1.1.11
8988

9089
# install whisper
91-
ARG whisper_version=${version}
90+
#ARG whisper_version=${version}
91+
ARG whisper_version=master
9292
ARG whisper_repo=https://github.com/graphite-project/whisper.git
9393
RUN git clone -b ${whisper_version} --depth 1 ${whisper_repo} /usr/local/src/whisper \
9494
&& cd /usr/local/src/whisper \
9595
&& . /opt/graphite/bin/activate \
9696
&& python3 ./setup.py install $python_extra_flags
9797

9898
# install carbon
99-
ARG carbon_version=${version}
99+
#ARG carbon_version=${version}
100+
ARG carbon_version=master
100101
ARG carbon_repo=https://github.com/graphite-project/carbon.git
101102
RUN . /opt/graphite/bin/activate \
102103
&& git clone -b ${carbon_version} --depth 1 ${carbon_repo} /usr/local/src/carbon \
@@ -105,7 +106,8 @@ RUN . /opt/graphite/bin/activate \
105106
&& python3 ./setup.py install $python_extra_flags
106107

107108
# install graphite
108-
ARG graphite_version=${version}
109+
#ARG graphite_version=${version}
110+
ARG graphite_version=master
109111
ARG graphite_repo=https://github.com/graphite-project/graphite-web.git
110112
RUN . /opt/graphite/bin/activate \
111113
&& git clone -b ${graphite_version} --depth 1 ${graphite_repo} /usr/local/src/graphite-web \
@@ -114,7 +116,7 @@ RUN . /opt/graphite/bin/activate \
114116
&& python3 ./setup.py install $python_extra_flags
115117

116118
# install statsd
117-
ARG statsd_version=0.10.1
119+
ARG statsd_version=0.10.2
118120
ARG statsd_repo=https://github.com/statsd/statsd.git
119121
WORKDIR /opt
120122
RUN git clone "${statsd_repo}" \
@@ -124,7 +126,7 @@ RUN git clone "${statsd_repo}" \
124126

125127
# build go-carbon (optional)
126128
# https://github.com/go-graphite/go-carbon/pull/340
127-
ARG gocarbon_version=0.17.1
129+
ARG gocarbon_version=0.17.3
128130
ARG gocarbon_repo=https://github.com/go-graphite/go-carbon.git
129131
RUN git clone "${gocarbon_repo}" /usr/local/src/go-carbon \
130132
&& cd /usr/local/src/go-carbon \
@@ -152,7 +154,7 @@ COPY conf/opt/graphite/conf/* /opt/graphite/conf/
152154
COPY conf/opt/graphite/webapp/graphite/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
153155
WORKDIR /opt/graphite/webapp
154156
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
156158

157159
# config statsd
158160
COPY conf/opt/statsd/config/ /opt/defaultconf/statsd/config/

Diff for: build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
VERSION=1.1.10-5
2+
VERSION=1.1.11-rc0
33
docker build . \
44
--build-arg python_extra_flags="--single-version-externally-managed --root=/" \
55
--no-cache --tag graphiteapp/graphite-statsd:$VERSION --progress tty

Diff for: conf/etc/service/graphite/run

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ BIN=/opt/graphite/bin/python3
2424

2525
export PYTHONPATH=/opt/graphite/webapp
2626
export DJANGO_SETTINGS_MODULE=graphite.settings
27-
${BIN} /opt/graphite/bin/django-admin.py makemigrations
28-
${BIN} /opt/graphite/bin/django-admin.py migrate auth
29-
${BIN} /opt/graphite/bin/django-admin.py migrate --run-syncdb
27+
${BIN} /opt/graphite/bin/django-admin makemigrations
28+
${BIN} /opt/graphite/bin/django-admin migrate auth
29+
${BIN} /opt/graphite/bin/django-admin migrate --run-syncdb
3030
/opt/graphite/bin/django_admin_init.sh || true
3131

3232
if folder_empty /opt/graphite/webapp/graphite/functions/custom; then

Diff for: conf/opt/graphite/bin/django_admin_init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BIN=/opt/graphite/bin/python3
44
[[ -f "/opt/graphite/bin/pypy3" ]] && BIN=/opt/graphite/bin/pypy3
55

6-
cat <<EOF | ${BIN} /opt/graphite/bin/django-admin.py shell
6+
cat <<EOF | ${BIN} /opt/graphite/bin/django-admin shell
77
from django.contrib.auth import get_user_model
88
99
User = get_user_model() # get the currently active user model

0 commit comments

Comments
 (0)