kolla-ansible/docker/openvswitch/openvswitch-base/Dockerfile.j2
Swapnil Kulkarni (coolsvap) 74601e38bf Update openvswitch dockerfile for formatting
Change-Id: Ia9c8a4d4a24f3a80652b950924917091ba7d16fe
Partial-Bug:#1569417
2016-04-21 17:18:50 +05:30

17 lines
377 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openvswitch \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
openvswitch-switch \
&& apt-get clean
{% endif %}