testing: update container packages before installing new ones

On octopus taking in the -devel packages causes *some* of the packages
to be updated but not all. This apparently makes ceph-fuse fail to
start correctly by blocking forever. This works around that issue.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-07-06 13:52:02 -04:00 committed by John Mulligan
parent d4440eb8c2
commit 5ee762c586
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ FROM ceph/daemon-base:latest-${CEPH_VERSION:-nautilus}
ENV CEPH_VERSION=${CEPH_VERSION:-nautilus}
RUN true && \
yum clean all && \
( if [ "${CEPH_VERSION}" = "octopus" ]; then dnf install -y --repo BaseOS 'dnf-command(config-manager)' && dnf config-manager --set-disabled epel && dnf update -y; fi ) && \
yum install -y git wget curl libcephfs-devel librados-devel librbd-devel /usr/bin/cc /usr/bin/c++ make && \
(yum install -y /usr/bin/castxml || true) && \
true