Skip to content

Commit 9237396

Browse files
committed
MINOR: Retry dnf install in the JNI vcpkg Docker image
Refresh the dnf cache and retry the OpenJDK install, since the baseos mirror intermittently returns an empty repomd.xml on aarch64.
1 parent bb9f52c commit 9237396

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎ci/docker/vcpkg-jni.dockerfile‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ FROM ${base}
2121
# Install Java
2222
# We need Java for JNI headers, but we don't invoke Maven in this build.
2323
ARG java=17
24-
RUN dnf install -y java-$java-openjdk-devel && dnf clean all
24+
# The repository metadata is refreshed and the install retried because the
25+
# baseos mirror intermittently returns an empty repomd.xml.
26+
RUN dnf clean all && rm -rf /var/cache/dnf && \
27+
for i in 1 2 3; do \
28+
dnf install -y java-$java-openjdk-devel && break; \
29+
if [ "$i" = 3 ]; then exit 1; fi; \
30+
sleep 15; \
31+
done && \
32+
dnf clean all
2533

2634
# For ci/scripts/{cpp,java}_*.sh
2735
ENV ARROW_HOME=/tmp/local \

0 commit comments

Comments
 (0)