From 99189ad5469ab633f6283eb16ffdf1da8b608679 Mon Sep 17 00:00:00 2001 From: Chris B Date: Sun, 20 Oct 2019 14:28:28 +0200 Subject: [PATCH 1/2] Add image support for various arm archs Traefik releases supported versions not only for armhf, but also for armv5, 6 and 7. If the image is built on e.g. a raspberry pi 3, the step to determine supported arch fails and the image is not built. With this change it is possible to build actual native images with support by official traefik binaries. --- alpine/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index a13255a..699ca44 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -4,6 +4,7 @@ RUN set -ex; \ apkArch="$(apk --print-arch)"; \ case "$apkArch" in \ armhf) arch='armv6' ;; \ + armv[567]) arch="$apkArch" ;; \ aarch64) arch='arm64' ;; \ x86_64) arch='amd64' ;; \ *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ From b3c6e84f65a0bbe26f284c3e9cd2c332f74f31ef Mon Sep 17 00:00:00 2001 From: Chris Braucker Date: Thu, 2 Jan 2020 01:24:39 +0100 Subject: [PATCH 2/2] Add support for specific arm archs in versioned Dockerfiles As requested in containous/traefik-library-image#69, adds support into versioned Dockerfiles, too. --- alpine/tmplv1.Dockerfile | 1 + alpine/tmplv2.Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/alpine/tmplv1.Dockerfile b/alpine/tmplv1.Dockerfile index e04dd39..859e1bd 100644 --- a/alpine/tmplv1.Dockerfile +++ b/alpine/tmplv1.Dockerfile @@ -4,6 +4,7 @@ RUN set -ex; \ apkArch="$(apk --print-arch)"; \ case "$apkArch" in \ armhf) arch='arm' ;; \ + armv[567]) arch="$apkArch" ;; \ aarch64) arch='arm64' ;; \ x86_64) arch='amd64' ;; \ *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ diff --git a/alpine/tmplv2.Dockerfile b/alpine/tmplv2.Dockerfile index 83ff9a9..16eb5f8 100644 --- a/alpine/tmplv2.Dockerfile +++ b/alpine/tmplv2.Dockerfile @@ -4,6 +4,7 @@ RUN set -ex; \ apkArch="$(apk --print-arch)"; \ case "$apkArch" in \ armhf) arch='armv6' ;; \ + armv[567]) arch="$apkArch" ;; \ aarch64) arch='arm64' ;; \ x86_64) arch='amd64' ;; \ *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \