aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-07 11:15:07 +0100
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-01-07 16:21:12 +0000
commit8b7ec43536842dd500cc5ee1198a318070ac1046 (patch)
treeacbaff70afd750b3721559b64c1662f41632a771
parent7c116653e311d2a9ef769bb9227acd0ce9d3ad7a (diff)
downloadkolla-8b7ec43536842dd500cc5ee1198a318070ac1046.tar.gz
kolla-8b7ec43536842dd500cc5ee1198a318070ac1046.zip
horizon: fix build in stable branches
When [1] was committed, horizon stopped building for Train. Analogous patch is proposed to other stable branches. This patch removes horizon from upper-constraints. Kolla master is affected directly because we build Train for CentOS 7 atm. [1] https://opendev.org/openstack/requirements/commit/3e54878f9c87266e1b9775f72af06de27a3dad65 Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com> Change-Id: I1bd5a40eeef9612d995c81426fe510e89f438725
-rw-r--r--docker/horizon/Dockerfile.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index 1423f05a1..5ce5e7f72 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -157,7 +157,9 @@ ADD plugins-archive /
'/plugins/*'
] %}
+# NOTE(hrw): to install horizon from unpacked sources we cannot have it in upper-constraints.txt
RUN ln -s horizon-source/* horizon \
+ && sed -i /^horizon=/d /requirements/upper-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/ \