summaryrefslogtreecommitdiff
path: root/docker/horizon
diff options
context:
space:
mode:
authorDincer Celik <hello@dincercelik.com>2019-07-01 13:18:36 +0300
committerDincer Celik <hello@dincercelik.com>2019-07-01 13:18:36 +0300
commiteb7c730e057082eadab5c01ef845f65bb5cf47c4 (patch)
tree2bb3a43d7d26cb24bef0f411b8297691a0e30c9c /docker/horizon
parent5ecb9107ea286bd0c1a45d4d95d064c764d33296 (diff)
downloadkolla-eb7c730e057082eadab5c01ef845f65bb5cf47c4.tar.gz
kolla-eb7c730e057082eadab5c01ef845f65bb5cf47c4.zip
Fixes wrong local_setting.py file issue for Ubuntu binary deployment.
This bug both affects Rocky and Stein. local_setting.py was not linked to local_settings under /etc/openstack-dashboard so Horizon runs with default settings. Change-Id: I818876619694695663c98d9edcb8c8514198e8fd Closes-Bug: #1803029
Diffstat (limited to 'docker/horizon')
-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 19b66f1a8..10d22f416 100644
--- a/docker/horizon/Dockerfile.j2
+++ b/docker/horizon/Dockerfile.j2
@@ -82,6 +82,8 @@ RUN echo > /etc/apache2/ports.conf \
&& cp /usr/share/openstack-dashboard/openstack_dashboard/conf/*.json /etc/openstack-dashboard \
&& cp /usr/share/openstack-dashboard/manage.py /usr/bin/manage.py \
&& rm /etc/apache2/conf-enabled/openstack-dashboard.conf \
+ && rm /etc/openstack-dashboard/local_settings.py \
+ && ln -s /etc/openstack-dashboard/local_settings /etc/openstack-dashboard/local_settings.py \
&& for locale in /usr/lib/python3/dist-packages/*/locale; do \
(cd ${locale%/*} && /usr/bin/django-admin compilemessages) \
done