tests: update packages to keep ceph common and libraries in sync

Sometimes the version in the RPM repository don't match the version
of the base image. This change updates the packages before installing
the libraries in order to make them match.

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-05-31 16:15:58 +02:00 committed by Sven Anderson
parent c74cbb1dfe
commit 78ff00f50b
1 changed files with 2 additions and 1 deletions

View File

@ -4,12 +4,13 @@ FROM ceph/daemon-base:latest-${CEPH_VERSION:-octopus}
ENV CEPH_VERSION=${CEPH_VERSION:-octopus}
RUN true && \
yum clean all && \
yum update -y && \
cv="$(rpm -q --queryformat '%{version}-%{release}' ceph-common)" && \
yum install -y \
git wget curl make \
/usr/bin/cc /usr/bin/c++ \
"libcephfs-devel-${cv}" "librados-devel-${cv}" "librbd-devel-${cv}" && \
yum clean all && \
true
ENV GOTAR=go1.15.10.linux-amd64.tar.gz