aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-base
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-09-23 05:14:37 +0000
committerGerrit Code Review <review@openstack.org>2018-09-23 05:14:37 +0000
commit0f310ae95edaa8543326c687f0904a22ab4c42e7 (patch)
treeaa2cffe794f5d986043d13dea48ade79dc45ad49 /docker/openvswitch/openvswitch-base
parent32e02a2fb88b9da620c61c3804802a16780ce9ff (diff)
parentf5c2f3d97cdb68a51aa22002d92fe250ff3ebc07 (diff)
downloadkolla-0f310ae95edaa8543326c687f0904a22ab4c42e7.tar.gz
kolla-0f310ae95edaa8543326c687f0904a22ab4c42e7.zip
Merge "openvswitch: make ovs-tcpdump usable"
Diffstat (limited to 'docker/openvswitch/openvswitch-base')
-rw-r--r--docker/openvswitch/openvswitch-base/Dockerfile.j217
1 files changed, 14 insertions, 3 deletions
diff --git a/docker/openvswitch/openvswitch-base/Dockerfile.j2 b/docker/openvswitch/openvswitch-base/Dockerfile.j2
index 1d16e8872..f823dec06 100644
--- a/docker/openvswitch/openvswitch-base/Dockerfile.j2
+++ b/docker/openvswitch/openvswitch-base/Dockerfile.j2
@@ -8,10 +8,20 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block ovs_install %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
- {% set openvswitch_base_packages = ['openvswitch'] %}
+ {% set openvswitch_base_packages = [
+ 'openvswitch',
+ 'python-netifaces',
+ 'python-openvswitch',
+ 'tcpdump'
+ ] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
- {% set openvswitch_base_packages = ['openvswitch-switch'] %}
+ {% set openvswitch_base_packages = [
+ 'openvswitch-switch',
+ 'python-openvswitch',
+ 'python-netifaces',
+ 'tcpdump'
+ ] %}
{% endif %}
{{ macros.install_packages(openvswitch_base_packages | customizable("packages")) }}
@@ -20,7 +30,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
COPY extend_start.sh /usr/local/bin/kolla_extend_start
-RUN touch /usr/local/bin/kolla_openvswitch_extend_start \
+RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump \
+ && touch /usr/local/bin/kolla_openvswitch_extend_start \
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_openvswitch_extend_start
{% block openvswitch_base_footer %}{% endblock %}