This is an automated email from the ASF dual-hosted git repository.
FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 6a05dca0885 build(docker): retry bash-static download (#20368)
6a05dca0885 is described below
commit 6a05dca088568c9076955df996e51222c9b0193f
Author: Frank Chen <[email protected]>
AuthorDate: Mon Sep 21 10:01:44 2026 +0800
build(docker): retry bash-static download (#20368)
---
distribution/docker/Dockerfile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/distribution/docker/Dockerfile b/distribution/docker/Dockerfile
index d7777e3c7c1..d4593aa2a22 100644
--- a/distribution/docker/Dockerfile
+++ b/distribution/docker/Dockerfile
@@ -51,6 +51,7 @@ RUN --mount=type=cache,target=/root/.m2,sharing=locked
VERSION=$(mvn -B -q org.a
FROM alpine:3 as bash-static
ARG TARGETARCH
+RUN apk add --no-cache curl
#
# Download bash-static binary to execute scripts that require bash.
# Although bash-static supports multiple platforms, but there's no need for us
to support all those platform, amd64 and arm64 are enough.
@@ -64,7 +65,12 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
echo "Unsupported architecture ($TARGETARCH)" && exit 1; \
fi; \
echo "Downloading bash-static from ${BASH_URL}" \
- && wget ${BASH_URL} -O /bin/bash
+ && curl --fail --location \
+ --retry 3 \
+ --retry-delay 5 \
+ --retry-all-errors \
+ --output /bin/bash \
+ "${BASH_URL}"
FROM busybox:1.35.0-glibc as busybox
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]