diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2023-03-27 16:55:04 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2023-04-21 14:13:24 +0200 |
| commit | 19e40f160852a3519f3e58043b9b5555ca87f87d (patch) | |
| tree | 6888eb38c08a5ee00a96fa63eb1f81c164667fb6 /docker/neutron | |
| parent | 2b0a5f684b80fcd85bfe12a51f899407e06741b8 (diff) | |
| download | kolla-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.j2 | 2 |
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 %} |
