aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-base/Dockerfile.j2
blob: 6d50d6c63098fad5ff070bd4778c7a7180c08b07 (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 install -y --no-install-recommends \
        openvswitch-switch \
    && apt-get clean

{% endif %}