build: include --nobest while upgrading the devel container packages

On occasion there are inconsistencies in the CentOS or Ceph RPM
repositories. This can cause `dnf update` to fail when there are
conflicting versions of a package. By adding the `--nobest` option,
packages can get upgraded to an older version, but not the latest.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
(cherry picked from commit d8a040719e)
This commit is contained in:
Niels de Vos 2024-12-10 12:22:51 +01:00 committed by mergify[bot]
parent 7731a913e9
commit d90cf6d4b7

View File

@ -35,7 +35,7 @@ RUN dnf -y install \
librados-devel \ librados-devel \
libcephfs-devel \ libcephfs-devel \
librbd-devel \ librbd-devel \
&& dnf -y update \ && dnf -y --nobest update \
&& dnf clean all \ && dnf clean all \
&& rm -rf /var/cache/yum \ && rm -rf /var/cache/yum \
&& true && true