Skip to content

Commit 6a089b1

Browse files
authored
fix: add retry for curl downloads (#2987)
Signed-off-by: Anant Sharma <anants@nvidia.com>
1 parent 905c920 commit 6a089b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

container/Dockerfile.sglang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ RUN ARCH=$(dpkg --print-architecture) && \
164164
arm64) PLATFORM=linux-arm64 ;; \
165165
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
166166
esac && \
167-
curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.${PLATFORM}.tar.gz" \
167+
curl -fsSL --retry 5 --retry-delay 5 "https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.${PLATFORM}.tar.gz" \
168168
| tar -xz -C /tmp && \
169169
mv "/tmp/prometheus-${PROM_VERSION}.${PLATFORM}/prometheus" /usr/local/bin/ && \
170170
chmod +x /usr/local/bin/prometheus && \

container/Dockerfile.vllm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ RUN ARCH=$(dpkg --print-architecture) && \
227227
arm64) PLATFORM=linux-arm64 ;; \
228228
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
229229
esac && \
230-
curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.${PLATFORM}.tar.gz" \
230+
curl -fsSL --retry 5 --retry-delay 5 "https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.${PLATFORM}.tar.gz" \
231231
| tar -xz -C /tmp && \
232232
mv "/tmp/prometheus-${PROM_VERSION}.${PLATFORM}/prometheus" /usr/local/bin/ && \
233233
chmod +x /usr/local/bin/prometheus && \

0 commit comments

Comments
 (0)