aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorBartosz Bezak <bartosz@stackhpc.com>2026-02-09 11:16:54 +0100
committerBartosz Bezak <bartosz@stackhpc.com>2026-02-09 13:16:11 +0100
commit4cdf881631eb0a671b9f70d5afefa6ead1949118 (patch)
tree30d1df3ae610d2f2e939861531f1a5d0b1a7dfba /docker
parentf6f52cdcc2857bde404a4abe7d772f96cd0d61a8 (diff)
downloadkolla-4cdf881631eb0a671b9f70d5afefa6ead1949118.tar.gz
kolla-4cdf881631eb0a671b9f70d5afefa6ead1949118.zip
horizon: pin setuptools <82
setuptools 82 removed pkg_resources [1] [1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0 Related-Bug: #2141293 Change-Id: Iced7662f7e58b9f094306e9a6c4f1b5a79f48b17 Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/horizon/Dockerfile.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index f2cb0b433..b854ca0f6 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -49,10 +49,13 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
# NOTE(kevko): This dance with local settings python paths below is needed
# because we are using different distros with different python version and we need to
# know to which path symlink should point to.
-# NOTE(mnasiadka): pinning setuptools due to https://bugs.launchpad.net/horizon/+bug/2007574
+# NOTE(bbezak): pin setuptools for pip build isolation due to
+# https://bugs.launchpad.net/horizon/+bug/2141293
RUN ln -s horizon-source/* horizon \
&& {{ macros.upper_constraints_remove("horizon") }} \
- && {{ macros.install_pip(horizon_pip_packages | customizable("pip_packages")) }} \
+ && echo "setuptools<82" > /tmp/horizon-build-constraints.txt \
+ && PIP_BUILD_CONSTRAINT=/tmp/horizon-build-constraints.txt \
+ {{ macros.install_pip(horizon_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/openstack-dashboard \
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
&& cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings.py \