kolla-ansible/docker/openvswitch/ovs-base/Dockerfile.j2
Vladislav Belogrudov aec595f7f7 Fix broken centos-source- build: add rdo repository
openvswitch requires rdo repository to be installed

Change-Id: I173bb3d32bcef2b890ab482083b0ffb830c3b7fb
Closes-Bug: #1495470
2015-09-17 16:58:07 +03:00

16 lines
413 B
Django/Jinja

FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
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 %}