Skip to content

Commit dc9f9b0

Browse files
fix: arch type with downloading dumb-init. (actions#723)
* fix: arch type with downloading dumb-init. * fix: arch type with downloading dumb-init in Dockerfile.dindrunner * fix: add -f option with curl
1 parent 02e05bd commit dc9f9b0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

runner/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ RUN apt update -y \
4747
# arch command on OS X reports "i386" for Intel CPUs regardless of bitness
4848
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
4949
&& if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \
50-
&& if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
51-
&& 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} \
50+
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
51+
&& 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} \
5252
&& chmod +x /usr/local/bin/dumb-init
5353

5454
# Docker download supports arm64 as aarch64 & amd64 / i386 as x86_64

runner/Dockerfile.dindrunner

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ RUN chmod +x /usr/local/bin/startup.sh /usr/local/bin/entrypoint.sh /usr/local/b
108108
# arch command on OS X reports "i386" for Intel CPUs regardless of bitness
109109
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
110110
&& if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \
111-
&& if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
112-
&& 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} \
111+
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
112+
&& 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} \
113113
&& chmod +x /usr/local/bin/dumb-init
114114

115115
VOLUME /var/lib/docker

runner/Dockerfile.ubuntu.1804

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ RUN apt update -y \
4747
# arch command on OS X reports "i386" for Intel CPUs regardless of bitness
4848
RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
4949
&& if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \
50-
&& if [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
51-
&& 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} \
50+
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
51+
&& 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} \
5252
&& chmod +x /usr/local/bin/dumb-init
5353

5454
# Docker download supports arm64 as aarch64 & amd64 / i386 as x86_64

0 commit comments

Comments
 (0)