From 7645fda4f2f0aba95c521cbb8da689c5bf34d1c9 Mon Sep 17 00:00:00 2001 From: macmpi Date: Sun, 27 Oct 2019 17:55:24 +0100 Subject: Workaround for ARCH detection Restored alpine docker genuinely supported architectures (as other ones are definitely not). Just give a clue to set wanted DABUILD_ARCH variable at invocation, when uname does not provide adequate info on some platforms like Pi. --- dabuild.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dabuild.in b/dabuild.in index b447562..fb44412 100755 --- a/dabuild.in +++ b/dabuild.in @@ -26,9 +26,10 @@ fi ## allow setting of arch by env variable [ ! "$DABUILD_ARCH" ] && DABUILD_ARCH=$(uname -m) case "$DABUILD_ARCH" in - x86|x86_64|aarch64|armv6|armv7|armv7l|armv8 ) ;; + x86|x86_64|aarch64|armhf|armv7 ) ;; * ) die "Unsupported arch \"$DABUILD_ARCH\" detected." \ - "Expected one of: x86|x86_64|aarch64|armv6|armv7|armv7l|armv8";; + "Expected one of: x86|x86_64|aarch64|armhf|armv7" \ + "You may force it setting DABUILD_ARCH=\"xxx\" in invocation";; esac ## use branch to figure out most appropriate alpine version -- cgit v1.2.3