Skip to content

Commit 1427ded

Browse files
authored
Merge pull request #187 from deniszh/DZ-1.1.8-4
Fixing arm64 build
2 parents 18159cb + 714c3db commit 1427ded

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ FROM base as build
4141
LABEL maintainer="Denys Zhdanov <[email protected]>"
4242

4343
ARG python_binary=python3
44+
ARG python_extra_flags="--single-version-externally-managed --root=/"
4445
ENV PYTHONDONTWRITEBYTECODE=1
4546

4647
RUN true \
@@ -89,7 +90,7 @@ ARG whisper_repo=https://github.com/graphite-project/whisper.git
8990
RUN git clone -b ${whisper_version} --depth 1 ${whisper_repo} /usr/local/src/whisper \
9091
&& cd /usr/local/src/whisper \
9192
&& . /opt/graphite/bin/activate \
92-
&& $python_binary ./setup.py install --single-version-externally-managed --root=/
93+
&& $python_binary ./setup.py install $python_extra_flags
9394

9495
# install carbon
9596
ARG carbon_version=${version}
@@ -98,7 +99,7 @@ RUN . /opt/graphite/bin/activate \
9899
&& git clone -b ${carbon_version} --depth 1 ${carbon_repo} /usr/local/src/carbon \
99100
&& cd /usr/local/src/carbon \
100101
&& pip3 install -r requirements.txt \
101-
&& $python_binary ./setup.py install --single-version-externally-managed --root=/
102+
&& $python_binary ./setup.py install $python_extra_flags
102103

103104
# install graphite
104105
ARG graphite_version=${version}
@@ -107,7 +108,7 @@ RUN . /opt/graphite/bin/activate \
107108
&& git clone -b ${graphite_version} --depth 1 ${graphite_repo} /usr/local/src/graphite-web \
108109
&& cd /usr/local/src/graphite-web \
109110
&& pip3 install -r requirements.txt \
110-
&& $python_binary ./setup.py install --single-version-externally-managed --root=/
111+
&& $python_binary ./setup.py install $python_extra_flags
111112

112113
# install statsd
113114
ARG statsd_version=0.9.0

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/usr/bin/env bash
2-
VERSION=1.1.8-3
3-
docker build . --build-arg python_binary=python3 --no-cache --tag graphiteapp/graphite-statsd:$VERSION
2+
VERSION=1.1.8-4
3+
docker build . \
4+
--build-arg python_binary=python3 --build-arg python_extra_flags="--single-version-externally-managed --root=/" \
5+
--no-cache --tag graphiteapp/graphite-statsd:$VERSION

build_pypy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
2-
VERSION=1.1.8-3
2+
VERSION=1.1.8-4
33
IMAGE=jamiehewland/alpine-pypy:3.6-7.3-alpine3.11
44
docker build . \
5-
--build-arg BASEIMAGE=${IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 \
5+
--build-arg BASEIMAGE=${IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 --build-arg python_extra_flags="" \
66
--no-cache --tag graphiteapp/graphite-statsd:$VERSION-pypy

0 commit comments

Comments
 (0)