From ad36e08451125e438076f3c8eadd77343d99d05e Mon Sep 17 00:00:00 2001 From: sparky8512 <76499194+sparky8512@users.noreply.github.com> Date: Sat, 24 Dec 2022 09:19:39 -0800 Subject: [PATCH] Make Docker image work for 32-bit ARMv7 This should allow for a working image if built manually, but does not add it to the multi-arch package built for this project's package repository. As discussed in issue #72, needed to work around some shared library issue between the binary wheel for one of the prerequisites published to PyPI and the base Docker image. --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 580689f..5dcb527 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,14 @@ LABEL maintainer="neurocis " RUN true && \ \ +ARCH=`uname -m`; \ +if [ "$ARCH" = "armv7l" ]; then \ + NOBIN_OPT="--no-binary=grpcio"; \ +else \ + NOBIN_OPT=""; \ +fi; \ # Install python prerequisites -pip3 install \ +pip3 install --no-cache-dir $NOBIN_OPT \ grpcio==1.50.0 six==1.16.0 \ influxdb==5.3.1 certifi==2022.9.24 charset-normalizer==2.1.1 idna==3.4 \ msgpack==1.0.4 python-dateutil==2.8.2 pytz==2022.6 requests==2.28.1 \