aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-01-04 19:02:55 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2020-01-04 19:07:07 +0100
commit202829dbf83f08eba7cb5de5879ab9e6c3e6beb5 (patch)
treebf3400621f6faf60070bde25344f4783b446c4a4 /build.sh
parent43766b98c22fdf3f0d7b777e15897032d8e638e1 (diff)
Select arm32v6 et arm64v8 repos
They are the official repos [1]. multiarch repo doesn't support Alpine 3.11 and Raspberry PI 1 (arm32v6). [1] https://hub.docker.com/_/alpine/ Change-Id: I2d73ef867c9714ecddba433295f822cf29b27b90 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index d1aa1243..b7e56725 100644
--- a/build.sh
+++ b/build.sh
@@ -19,10 +19,10 @@ build_opts=(--pull=true --no-cache --force-rm=true)
for arch in ${arch};do
if [[ ${arch} == arm64 ]]; then
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.11|multiarch/alpine:arm64-v3.11|g" {} +
+ -e "s|alpine:3.11|arm64v8/alpine:3.11|g" {} +
elif [[ ${arch} == arm ]]; then
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.11|multiarch/alpine:armhf-v3.11|g" {} +
+ -e "s|alpine:3.11|arm32v6/alpine:3.11|g" {} +
fi
(cd docker && docker build "${build_opts[@]}" \
-t "${repo}/${image}:${arch}-${tag}" .)