Fuel CCP - Horizon deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.6 KiB

  1. --- Dockerfile.j2 2017-01-19 13:54:07.533262012 +0100
  2. +++ Dockerfile.j2.mitaka 2017-01-19 14:08:08.960824525 +0100
  3. @@ -9,7 +9,6 @@
  4. {{ copy_sources("openstack/horizon", "/horizon") }}
  5. {{ copy_sources("openstack/sahara-dashboard", "/sahara-dashboard") }}
  6. -{{ copy_sources("openstack/murano-dashboard", "/murano-dashboard") }}
  7. {{ copy_sources("openstack/searchlight-ui", "/searchlight-ui") }}
  8. RUN mkdir -p /etc/openstack-dashboard /home/horizon /var/www/cgi-bin/horizon \
  9. @@ -19,13 +18,9 @@
  10. cp -a /searchlight-ui/searchlight_ui/conf/searchlight_policy.json /horizon/openstack_dashboard/conf/; fi) \
  11. && (if [ -f /searchlight-ui/searchlight_ui/local_settings.d/_1001_search_settings.py ]; then \
  12. cp -a /searchlight-ui/searchlight_ui/local_settings.d/_1001_search_settings.py /horizon/openstack_dashboard/local/local_settings.d/; fi) \
  13. - && /var/lib/microservices/venv/bin/pip install --upgrade /horizon /sahara-dashboard /murano-dashboard /searchlight-ui \
  14. && useradd --user-group horizon \
  15. && ln -s /etc/openstack-dashboard/local_settings /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py \
  16. && cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
  17. - && cp -r /murano-dashboard/muranodashboard/conf/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/conf/ \
  18. - && cp -a /murano-dashboard/muranodashboard/local/enabled/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/enabled/ \
  19. - && cp -a /murano-dashboard/muranodashboard/local/local_settings.d/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.d/ \
  20. && cp /horizon/manage.py /var/lib/microservices/venv/bin/manage.py \
  21. && /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py collectstatic --noinput --clear \
  22. && chown -R horizon: /etc/openstack-dashboard /home/horizon /var/lib/microservices/venv/lib/python2.7/site-packages/static /horizon \
  23. @@ -36,9 +31,6 @@
  24. # Workaround for https://bugs.launchpad.net/osprofiler/+bug/1361235
  25. RUN sed -i "s#'../..'#os.path.realpath('../..')#" /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi
  26. -# TODO (amogylchenko): remove ugly sed for session_engine
  27. -RUN sed -i "s/^SESSION_ENGINE = .*/SESSION_ENGINE = 'django.contrib.sessions.backends.cache'/g" /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.d/_50_murano.py
  28. -
  29. COPY daemon.sh /usr/local/bin/daemon.sh
  30. COPY horizon_sudoers /etc/sudoers.d/horizon_sudoers
  31. RUN chmod 755 /usr/local/bin/daemon.sh \