aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/neutron/neutron-sfc-agent/Dockerfile.j29
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/neutron/neutron-sfc-agent/Dockerfile.j2 b/docker/neutron/neutron-sfc-agent/Dockerfile.j2
index 5915ac5e4..9fb4e7c0f 100644
--- a/docker/neutron/neutron-sfc-agent/Dockerfile.j2
+++ b/docker/neutron/neutron-sfc-agent/Dockerfile.j2
@@ -6,9 +6,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
-
-RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
- && /bin/false
+ {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
+ {% set networking_sfc_agent = ['python-networking-sfc'] %}
+ {% elif base_distro in ['debian', 'ubuntu'] %}
+ {% set networking_sfc_agent = ['python-networking-sfc'] %}
+ {% endif %}
+ {{ macros.install_packages(networking_sfc_agent | customizable("packages")) }}
{% elif install_type == 'source' %}