aboutsummaryrefslogtreecommitdiff
path: root/docker/neutron
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org>2023-03-27 16:55:04 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org>2023-04-21 14:13:24 +0200
commit19e40f160852a3519f3e58043b9b5555ca87f87d (patch)
tree6888eb38c08a5ee00a96fa63eb1f81c164667fb6 /docker/neutron
parent2b0a5f684b80fcd85bfe12a51f899407e06741b8 (diff)
downloadkolla-19e40f160852a3519f3e58043b9b5555ca87f87d.tar.gz
kolla-19e40f160852a3519f3e58043b9b5555ca87f87d.zip
docker: implement macros to alter upper-constraints.txt
upper_constraints_remove() macro allows to remove line upper_constraints_version_change() allows to change versions This way we have cleaner way to alter u-c in those images which need it. Change-Id: I8fc354b8aa4d03fcd3ecfb9cbfe75de67492a0e3
Diffstat (limited to 'docker/neutron')
-rw-r--r--docker/neutron/neutron-mlnx-agent/Dockerfile.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/neutron/neutron-mlnx-agent/Dockerfile.j2 b/docker/neutron/neutron-mlnx-agent/Dockerfile.j2
index 3b5aadaa2..d3a5d8a65 100644
--- a/docker/neutron/neutron-mlnx-agent/Dockerfile.j2
+++ b/docker/neutron/neutron-mlnx-agent/Dockerfile.j2
@@ -21,7 +21,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
{# NOTE(hrw): pyzmq 20 fails to build while 19.* and 21.* build fine. #}
-RUN sed -e "s/^pyzmq===20.0.0/pyzmq==21.*/g" -i /requirements/upper-constraints.txt \
+RUN {{ macros.upper_constraints_version_change("pyzmq", "20.0.0", "21.*") }} \
&& {{ macros.install_pip(neutron_mlnx_agent_pip_packages | customizable("pip_packages")) }}
{% block neutron_mlnx_agent_footer %}{% endblock %}