Skip to content

Commit a763849

Browse files
committed
3 retries with 5 second delay in between
1 parent e61f773 commit a763849

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ ENV ICEBERG_VERSION=1.9.1
4343
ENV PYICEBERG_VERSION=0.10.0
4444

4545
# Try the primary Apache mirror (downloads.apache.org) first, then fall back to the archive
46-
# Use -f so curl fails on HTTP errors and && fallback with || to try the archive mirror.
4746
RUN set -eux; \
4847
FILE=spark-${SPARK_VERSION}-bin-hadoop3.tgz; \
4948
URLS="https://downloads.apache.org/spark/spark-${SPARK_VERSION}/${FILE} https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/${FILE}"; \
5049
for url in $URLS; do \
5150
echo "Attempting download: $url"; \
52-
if curl --retry 5 --retry-delay 5 -f -s -C - "$url" -o "$FILE"; then \
51+
if curl --retry 3 --retry-delay 5 -f -s -C - "$url" -o "$FILE"; then \
5352
echo "Downloaded from: $url"; \
5453
break; \
5554
else \

0 commit comments

Comments
 (0)