libvirt: Stick to 4.0.0 version located in main repository

Version 5 of libvirt present in Virtualization repo is too recent
and unnecessary for queens and rocky builds.

Virtualization repo is however necessary for cgroups packages
that are not present in the main repository. It can be deleted once the
necessary packages are installed.

Ceph repo should not be needed at all.

Change-Id: I2d030c0f326cef4571ef6d15056d8afdf7381d69
This commit is contained in:
Jiří Suchomel 2019-02-28 10:44:42 +01:00 committed by Jean-Philippe Evrard
parent c3d5311068
commit 2a37c17207
1 changed files with 6 additions and 8 deletions

View File

@ -6,28 +6,26 @@ ARG UID=42424
ARG GID=42424
COPY suse_leap15_virtualization_repo.key /tmp/
COPY suse_sle15_ceph_repo.key /tmp/
RUN rpm --import /tmp/suse_leap15_virtualization_repo.key
RUN rpm --import /tmp/suse_sle15_ceph_repo.key
RUN set -ex ;\
zypper ar "http://download.opensuse.org/repositories/filesystems:/ceph/SLE_15/filesystems:ceph.repo" ;\
zypper ar "http://download.opensuse.org/repositories/Virtualization/openSUSE_Leap_15.0/Virtualization.repo" ;\
zypper ar http://download.opensuse.org/update/leap/15.0/oss/ leap_15_oss ;\
zypper refresh ;\
zypper -n install \
ceph-common \
systemd \
dmidecode \
ebtables \
iproute2 \
libcgroup1 \
libcgroup-tools \
libvirt \
python2-libvirt-python \
qemu \
qemu-kvm \
openvswitch ;\
zypper ar "http://download.opensuse.org/repositories/Virtualization/openSUSE_Leap_15.0" Virtualization;\
zypper refresh ;\
zypper -n install \
libcgroup1 \
libcgroup-tools; \
zypper rr Virtualization; \
groupadd -g ${GID} ${PROJECT} ;\
useradd -u ${UID} -g ${PROJECT} -M -d /var/lib/${PROJECT} -s /usr/sbin/nologin -c "${PROJECT} user" ${PROJECT} ;\
mkdir -p /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} ;\