build: use lower version for dependencies if repositories are broken

Some packages have dependencies on other repositories. On occasion these
repositories seem to be out-of-sync. In that case, install updates with
an older version, instead of erroring out.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-08-25 10:21:09 +02:00 committed by mergify[bot]
parent ff030f12e1
commit 16e5de5e1d

View File

@ -9,7 +9,7 @@ FROM ${BASE_IMAGE} as updated_base
RUN dnf config-manager --disable \ RUN dnf config-manager --disable \
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi || true tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi || true
RUN dnf -y update \ RUN dnf -y update --nobest \
&& dnf clean all \ && dnf clean all \
&& rm -rf /var/cache/yum && rm -rf /var/cache/yum