Merge "Improve dry-ness of base dockerfile.j2"

This commit is contained in:
Jenkins 2015-10-21 09:34:52 +00:00 committed by Gerrit Code Review
commit 7e4f78130b

View File

@ -47,12 +47,10 @@ COPY ceph.yum.repo /etc/yum.repos.d/ceph.repo
RUN yum install -y http://www.percona.com/redir/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm \ RUN yum install -y http://www.percona.com/redir/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm \
&& sed -i 's|$releasever|centos/latest|g' /etc/yum.repos.d/percona-release.repo && sed -i 's|$releasever|centos/latest|g' /etc/yum.repos.d/percona-release.repo
{% if install_metatype == 'rdo' %} {% if install_metatype in ['rdo', 'mixed'] %}
# This repository provides all dependencies used by RDO OpenStack # These repos provide latest packages built from trunk master into RPMs
RUN yum install -y https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm RUN curl http://trunk.rdoproject.org/centos7/current-passed-ci/delorean.repo -o /etc/yum.repos.d/delorean.repo
# This repository provides latest packages built from trunk master into RPMs
RUN curl http://trunk.rdoproject.org/centos7/current/delorean.repo -o /etc/yum.repos.d/delorean-current.repo
RUN curl http://trunk.rdoproject.org/centos7/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo RUN curl http://trunk.rdoproject.org/centos7/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
{% endif %} {% endif %}
@ -133,14 +131,6 @@ RUN yum install -y \
{% if install_type == 'source' %} {% if install_type == 'source' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
# Set up repositories
RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
&& yum clean all
{% endif %}
# Update packages # Update packages
RUN yum -y install \ RUN yum -y install \
curl \ curl \