From 64b1679b2cb83608e7a418a3435e89cc20d6cb86 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 3 Nov 2020 16:53:53 +0100 Subject: [PATCH] Fix for i686 --- CHANGELOG.md | 2 ++ Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04b1acdf..a38530cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## master - CURRENT +### Modified +* Fix i686 docker image build ## 3.7.2 - 03/11/2020 ### Added diff --git a/Dockerfile b/Dockerfile index aaecb7c6..2478b071 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,8 @@ ENV CERTS_PATH /etc/letsencrypt RUN apk add --no-cache docker-cli bash \ && python -m pip install --upgrade pip wheel \ - && pip install --no-deps /tmp/dnsrobocert/precompiled-wheels/*_$(uname -m).whl \ + # Under i686 arch emulated with QEMU, uname -m still returns x86_64. Workaround by retrying explicitly with i686 wheels. + && (pip install --no-deps /tmp/dnsrobocert/precompiled-wheels/*_$(uname -m).whl || pip install --no-deps /tmp/dnsrobocert/precompiled-wheels/*_i686.whl) \ && pip install -c /tmp/dnsrobocert/constraints.txt /tmp/dnsrobocert/*.whl \ && mkdir -p /etc/dnsrobocert /etc/letsencrypt \ && rm -rf /tmp/dnsrobocert