From dc9f9b0bfb512009fab75f2e524749793da3c8a8 Mon Sep 17 00:00:00 2001 From: Hiroki Matsumoto <35314064+h-r-k-matsumoto@users.noreply.github.com> Date: Thu, 12 Aug 2021 00:43:25 +0900 Subject: [PATCH] fix: arch type with downloading dumb-init. (#723) * fix: arch type with downloading dumb-init. * fix: arch type with downloading dumb-init in Dockerfile.dindrunner * fix: add -f option with curl --- runner/Dockerfile | 4 ++-- runner/Dockerfile.dindrunner | 4 ++-- runner/Dockerfile.ubuntu.1804 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runner/Dockerfile b/runner/Dockerfile index f9b73dbe..66887c64 100644 --- a/runner/Dockerfile +++ b/runner/Dockerfile @@ -47,8 +47,8 @@ RUN apt update -y \ # arch command on OS X reports "i386" for Intel CPUs regardless of bitness RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ - && if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ - && curl -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ + && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ + && curl -f -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ && chmod +x /usr/local/bin/dumb-init # Docker download supports arm64 as aarch64 & amd64 / i386 as x86_64 diff --git a/runner/Dockerfile.dindrunner b/runner/Dockerfile.dindrunner index aedc1cb7..6284cb11 100644 --- a/runner/Dockerfile.dindrunner +++ b/runner/Dockerfile.dindrunner @@ -108,8 +108,8 @@ RUN chmod +x /usr/local/bin/startup.sh /usr/local/bin/entrypoint.sh /usr/local/b # arch command on OS X reports "i386" for Intel CPUs regardless of bitness RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ - && if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ - && curl -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ + && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ + && curl -f -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ && chmod +x /usr/local/bin/dumb-init VOLUME /var/lib/docker diff --git a/runner/Dockerfile.ubuntu.1804 b/runner/Dockerfile.ubuntu.1804 index 93ae67ec..3bc396ea 100644 --- a/runner/Dockerfile.ubuntu.1804 +++ b/runner/Dockerfile.ubuntu.1804 @@ -47,8 +47,8 @@ RUN apt update -y \ # arch command on OS X reports "i386" for Intel CPUs regardless of bitness RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ - && if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ - && curl -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ + && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ + && curl -f -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_${ARCH} \ && chmod +x /usr/local/bin/dumb-init # Docker download supports arm64 as aarch64 & amd64 / i386 as x86_64