Add blocks to customize RHEL package installation

Add blocks to the base Docker image that allows the operator to override
the base RHEL package installation.

TrivialFix
Change-Id: If570975e1f57ef9820544174dacc3f13d09bb215
This commit is contained in:
Andrew Widdersheim 2016-10-19 11:28:07 -04:00
parent 1d86f39eb0
commit 8260bfb348

View File

@ -102,6 +102,7 @@ RUN true \
{% if base_distro == 'rhel' %} {% if base_distro == 'rhel' %}
{% block base_rhel_package_installation %}
# Enable couple required repositories for all RHEL builds # Enable couple required repositories for all RHEL builds
# Turn on EPEL throughout the build # Turn on EPEL throughout the build
RUN yum -y install \ RUN yum -y install \
@ -112,6 +113,7 @@ RUN yum -y install \
&& yum clean all \ && yum clean all \
&& yum-config-manager --enable rhel-7-server-optional-rpms \ && yum-config-manager --enable rhel-7-server-optional-rpms \
&& yum-config-manager --enable rhel-7-server-extras-rpms && yum-config-manager --enable rhel-7-server-extras-rpms
{% endblock %}
{% endif %} {% endif %}
{# Endif for base_distro RHEL #} {# Endif for base_distro RHEL #}