aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/kuryr/kuryr-base/Dockerfile.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/kuryr/kuryr-base/Dockerfile.j2 b/docker/kuryr/kuryr-base/Dockerfile.j2
index 42d33bd5d..b5a2b4bb8 100644
--- a/docker/kuryr/kuryr-base/Dockerfile.j2
+++ b/docker/kuryr/kuryr-base/Dockerfile.j2
@@ -9,7 +9,10 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% elif install_type == 'source' %}
ADD kuryr-base-archive /kuryr-base-source
+# NOTE(Jeffrey4l): remove kuryr-lib constraint in upper-constraints.txt file.
+# Otherwise, it will be failed.
RUN ln -s kuryr-base-source/* kuryr-base \
+ && sed -i 's|^kuryr-lib===.*$||g' requirements/upper-constraints.txt \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr-base
{% endif %}