CentOS 7.1 image doesn't work with libvirt

The libvirt package has a dependency on systemd-libs and systemd,
while the centos 7.1 container installs systemd-container-libs
and systemd-container.  We don't need either of these systemd tools
but they reuslt in a broken build of the system if they are missing.

As is, the libvirt container will not build.

Change-Id: I8e5aac0e3a7e9d88a81733a3048971fe9d48ba56
This commit is contained in:
Steven Dake 2015-04-14 10:54:50 -07:00
parent 4a23484a96
commit f4319a9a21

View File

@ -10,6 +10,10 @@ RUN curl https://copr.fedoraproject.org/coprs/sdake/pam.noaudit/repo/epel-7/sdak
RUN sed "s/Derived from Red Hat Enterprise Linux 7.1 (Source)/7/" "/etc/yum.repos.d/rdo-release.repo" -i
# CentOS 7.1 workaround for conflicting packages with libvirt
RUN rpm -e --nodeps systemd-container systemd-container-libs
RUN yum -y install systemd systemd-libs systemd-devel && yum clean all
RUN yum install -y epel-release && yum clean all
# Update packages