aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-base/Dockerfile.j2
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-09-28 11:10:17 +0000
committerSam Yaple <sam@yaple.net>2015-09-28 11:10:17 +0000
commit76920be5fad2bb58680fd21681713b236bea7edf (patch)
tree39ff059f796f1151fa9e0275ba825c751de9a5d4 /docker/openvswitch/openvswitch-base/Dockerfile.j2
parenta0ac8764948f2dba28f648d053cd0a68d8c3e78d (diff)
downloadkolla-76920be5fad2bb58680fd21681713b236bea7edf.tar.gz
kolla-76920be5fad2bb58680fd21681713b236bea7edf.zip
Rename ovs to openvswitch
Our openvswitch image does not follow the naming convention of any of our other containers and it should. Change-Id: If1b815117bb39df74061218e48778479b8d674bc Closes-Bug: #1500392
Diffstat (limited to 'docker/openvswitch/openvswitch-base/Dockerfile.j2')
-rw-r--r--docker/openvswitch/openvswitch-base/Dockerfile.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/openvswitch/openvswitch-base/Dockerfile.j2 b/docker/openvswitch/openvswitch-base/Dockerfile.j2
new file mode 100644
index 000000000..7ededdfcd
--- /dev/null
+++ b/docker/openvswitch/openvswitch-base/Dockerfile.j2
@@ -0,0 +1,15 @@
+FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+{% 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 %}