bcd9f2c23d
The openvswich package is only available in the rdo repositories. Change-Id: Ic4b22fd0fd27508f3b08c776b8c784ee89ac811d Partially-Impelements: gate-source-builds
22 lines
630 B
Django/Jinja
22 lines
630 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
|
|
|
# TODO(sdake): groan openvswitch is only in the RDO repos
|
|
{% if install_type == 'source' %}
|
|
RUN yum install -y https://rdoproject.org/repos/openstack-kilo/rdo-release-kilo.rpm \
|
|
&& yum clean all
|
|
{% endif %}
|
|
|
|
RUN yum install -y \
|
|
openvswitch \
|
|
&& yum clean all
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|