kolla-ansible/docker/openvswitch/openvswitch-base/Dockerfile.j2
Swapnil Kulkarni (coolsvap) ddf3282c59 Update OpenVSwitch dockerfile for formatting
Change-Id: Ie76b3ada37266aded0bd9808dffdc1b578be1172
Partial-Bug:#1569417
2016-04-12 22:01:43 +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 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 %}