Skip to content

Commit 53f00bb

Browse files
authored
build(fw_final): retry jackson-core fetch on Maven throttling (#4925)
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 2641e83 commit 53f00bb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docker/Dockerfile.fw_final

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,14 @@ RUN pip install "starlette==0.49.1" \
9797
# The actual onnx Python package is managed above via pip/uv; this stale copy triggers CVE scanners.
9898
RUN rm -rf /opt/pytorch/pytorch/third_party/onnx
9999

100-
# Patch jackson-core CVE inside Ray's bundled fat-jar (cannot upgrade Ray itself)
100+
# Patch jackson-core CVE inside Ray's bundled fat-jar (cannot upgrade Ray itself).
101+
# Maven Central throttles CI egress IPs (HTTP 429/503); --retry-on-http-error makes
102+
# wget retry those instead of aborting the build (wget ignores --tries for HTTP errors).
101103
RUN JACKSON_VERSION=2.18.6 && \
102104
TMPDIR=$(mktemp -d) && \
103-
wget -q "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/${JACKSON_VERSION}/jackson-core-${JACKSON_VERSION}.jar" \
105+
wget -nv --tries=5 --waitretry=10 --retry-connrefused \
106+
--retry-on-http-error=429,500,502,503,504 \
107+
"https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/${JACKSON_VERSION}/jackson-core-${JACKSON_VERSION}.jar" \
104108
-O "${TMPDIR}/jackson-core-fixed.jar" && \
105109
unzip -q "${TMPDIR}/jackson-core-fixed.jar" -d "${TMPDIR}/jackson_fixed" && \
106110
apt-get update && apt-get install -y --no-install-recommends zip && apt-get clean && \

0 commit comments

Comments
 (0)