Skip to content

Commit fad4f15

Browse files
authored
Dockerfile.ppc64le.ubi: retry openblas install on failure, pin cmake<4 (opendatahub-io#371)
Downstream builds could intermittently fail because of poor connectivity of ppc konflux to the outside world, this PR retries on failures to avoid these intermittent build failures. Pinning cmake<4 is required as cmake>=4 breaks the build.
1 parent 16980d6 commit fad4f15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile.ppc64le.ubi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ RUN microdnf install -y dnf openssl-devel \
3737
&& ln -sf /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so \
3838
&& python${PYTHON_VERSION} -m venv ${VIRTUAL_ENV} \
3939
&& python -m pip install -U pip uv \
40-
&& uv pip install wheel build setuptools setuptools_scm setuptools_rust meson-python cmake ninja cython scikit_build_core scikit_build \
41-
&& curl -sL https://ftp2.osuosl.org/pub/ppc64el/openblas/latest/Openblas_${OPENBLAS_VERSION}_ppc64le.tar.gz | tar xvf - -C /usr/local \
40+
&& uv pip install wheel build setuptools setuptools_scm setuptools_rust meson-python 'cmake<4' ninja cython scikit_build_core scikit_build \
41+
&& curl -L --no-progress-meter --retry 5 --retry-connrefused https://ftp2.osuosl.org/pub/ppc64el/openblas/latest/Openblas_${OPENBLAS_VERSION}_ppc64le.tar.gz | tar xvf - -C /usr/local \
4242
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
4343
&& cd /tmp && touch control
4444

@@ -263,9 +263,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
263263
&& microdnf clean all \
264264
&& python${PYTHON_VERSION} -m venv ${VIRTUAL_ENV} \
265265
&& python -m pip install -U pip uv --no-cache \
266-
&& curl -sL https://ftp2.osuosl.org/pub/ppc64el/openblas/latest/Openblas_${OPENBLAS_VERSION}_ppc64le.tar.gz | tar xvf - -C /usr/local \
266+
&& curl -L --no-progress-meter --retry 5 --retry-connrefused https://ftp2.osuosl.org/pub/ppc64el/openblas/latest/Openblas_${OPENBLAS_VERSION}_ppc64le.tar.gz | tar xvf - -C /usr/local \
267267
&& make -C /numactl install \
268-
&& uv pip install cmake \
268+
&& uv pip install 'cmake<4' \
269269
&& cmake --install /lapack/build \
270270
&& uv pip uninstall cmake
271271

0 commit comments

Comments
 (0)