Merge "Fix broken centos-source- build: add rdo repository"

This commit is contained in:
Jenkins 2015-09-18 20:10:24 +00:00 committed by Gerrit Code Review
commit b0cd947c7a
5 changed files with 12 additions and 15 deletions

View File

@ -153,6 +153,14 @@ RUN yum install -y \
# Endif for install_type binary # Endif for install_type binary
{% elif install_type == 'source' %} {% elif 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 update -y \ RUN yum update -y \
&& yum install -y \ && yum install -y \

View File

@ -3,7 +3,9 @@ MAINTAINER Kolla Project (https://launchpad.net.kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y supervisor \ RUN yum install -y \
openvswitch \
supervisor \
&& yum clean all && yum clean all
COPY supervisord.conf /etc/ COPY supervisord.conf /etc/

View File

@ -20,11 +20,7 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['ubuntu', 'debian'] %}
RUN yum -y install openvswitch
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
iptables \ iptables \

View File

@ -16,8 +16,6 @@ RUN yum install -y \
# Install required packages # Install required packages
RUN yum install -y \ RUN yum install -y \
#TODO: will be addressed later
https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
openvswitch \ openvswitch \
&& yum clean all && yum clean all

View File

@ -2,13 +2,6 @@ FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla) MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% if install_type == 'source' %}
# TODO(sdake): groan openvswitch is only in the RDO repos
RUN yum install -y https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
&& yum clean all
{% endif %}
RUN yum install -y \ RUN yum install -y \
openvswitch \ openvswitch \