Install yum-plugin-priorities on RHEL-derivatives

RDO provides all of the OpenStack services, clients, libs and their
dependencies self-contained in it's repositories.
We have had users that were impacted by sudden updates from EPEL
when it was enabled because EPEL provided a more up-to-date version.
Packages may also be found in both the delorean and delorean-deps
repositories. yum-plugin-priorities will ensure the right package
candidates are chosen for installation.

Change-Id: I043ec1f60381dc7f5baab5f320ed5f1edde8ae82
Related-bug: https://bugzilla.redhat.com/show_bug.cgi?id=1284978
Closes-bug: #1520620
This commit is contained in:
David Moreau Simard 2015-11-26 17:27:34 -05:00
parent dd71b98d81
commit a9d570695a
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@ RUN yum-config-manager --enable rhel-7-server-rpms \
RUN rpm -e --nodeps systemd-container systemd-container-libs \
&& rpm -e --nodeps yum-plugin-fastestmirror \
&& yum -y install systemd systemd-libs systemd-devel \
&& yum install -y epel-release \
&& yum install -y epel-release yum-plugin-priorities \
&& yum clean all
{% endif %}
@ -81,6 +81,7 @@ RUN rpm -e --nodeps systemd-container systemd-container-libs \
# Turn on EPEL throughout the build
RUN yum install -y \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& yum -y install yum-plugin-priorities \
&& yum clean all \
&& yum-config-manager --enable rhel-7-server-optional-rpms \
&& yum-config-manager --enable rhel-7-server-extras-rpms
@ -95,6 +96,7 @@ RUN yum install -y \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& yum clean all
RUN yum-config-manager --enable ol7_optional_latest ol7_addons
RUN yum install -y yum-plugin-priorities
{% endif %}
# Endif for base_distro oraclelinux
@ -104,6 +106,7 @@ RUN yum-config-manager --enable ol7_optional_latest ol7_addons
# Set up repositories
RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
&& yum -y install dnf dnf-plugins-core \
&& yum -y install yum-plugin-priorities \
&& yum clean all
{% endif %}