aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-base/Dockerfile.j2
blob: 558339baf87d881d6f4945a8e6378e6c81b9b08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 -y install --no-install-recommends \
        openvswitch-switch \
    && apt-get clean

{% endif %}