diff --git a/docker_templates/horizon/Dockerfile.j2 b/docker_templates/horizon/Dockerfile.j2 index d1ee8592ee..dfd731939d 100644 --- a/docker_templates/horizon/Dockerfile.j2 +++ b/docker_templates/horizon/Dockerfile.j2 @@ -35,7 +35,17 @@ RUN cd /horizon \ && useradd --user-group horizon \ && pip install -r requirements.txt \ && pip install /horizon \ - && mkdir -p /etc/openstack-dashboard /var/log/horizon /usr/share/openstack-dashboard/static \ + && mkdir -p \ + /etc/openstack-dashboard \ + /var/log/horizon \ + /usr/share/openstack-dashboard \ + && cp -r /horizon/openstack_dashboard /usr/share/openstack-dashboard/ \ + && cp /horizon/openstack_dashboard/local/local_settings.py.example \ + /etc/openstack-dashboard/local_settings \ + && ln -s /etc/openstack-dashboard/local_settings \ + /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py \ + && cp /horizon/manage.py /usr/share/openstack-dashboard \ + && python /usr/share/openstack-dashboard/manage.py collectstatic --noinput \ && chown -R apache:apache /usr/share/openstack-dashboard/static \ && rm -rf /root/.cache