aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-base/Dockerfile.j2
blob: 04b82fe50d3355b90c1c3beb3e5deb616061f4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 %}