kolla-ansible/docker_templates/openvswitch/ovs-base/Dockerfile.j2
Sam Yaple cbdee3bd0b Ubuntu - OpenVSwitch
Change-Id: I235c5d2b50048f9c46c36953fabdd7a1ffa40afd
Partially-Implements: blueprint install-from-ubuntu
2015-08-22 14:10:25 +00:00

23 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'] %}
{% 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 \
openvswitch \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends openvswitch-switch \
&& apt-get clean
{% endif %}