From 51a08690f8719772ab4ecd9714663d0d534c58c0 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Thu, 1 Dec 2016 04:00:35 +0000 Subject: [PATCH] Install trove dashboard into horizon image Closes-Bug: #1646337 Change-Id: I1e9295da273055bfb870c7a87a32b989f3f61e8b --- docker/horizon/Dockerfile.j2 | 7 +++++-- docker/horizon/extend_start.sh | 9 +++++++++ kolla/common/config.py | 4 ++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2 index 66296681fc..a480735ce8 100644 --- a/docker/horizon/Dockerfile.j2 +++ b/docker/horizon/Dockerfile.j2 @@ -16,7 +16,9 @@ MAINTAINER {{ maintainer }} 'openstack-cloudkitty-ui', 'openstack-manila-ui', 'openstack-neutron-lbaas-ui', - 'openstack-sahara-ui' + 'openstack-sahara-ui', + 'openstack-trove-ui' + ] %} {{ macros.install_packages(horizon_packages | customizable("packages")) }} @@ -33,7 +35,8 @@ RUN useradd --user-group horizon \ && (cd /usr/lib/python2.7/site-packages/horizon && /usr/bin/python /usr/bin/manage.py compilemessages) \ && (cd /usr/lib/python2.7/site-packages/openstack_dashboard && /usr/bin/python /usr/bin/manage.py compilemessages) \ && rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_148*_project*loadbalancersv2_panel.py* \ - && rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_18*_data_processing_*.py* + && rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_18*_data_processing_*.py* \ + && rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_17*_database*.py* {% endblock %} {% elif base_distro in ['ubuntu'] %} diff --git a/docker/horizon/extend_start.sh b/docker/horizon/extend_start.sh index 97c2839790..9bebdf94c0 100644 --- a/docker/horizon/extend_start.sh +++ b/docker/horizon/extend_start.sh @@ -73,11 +73,20 @@ function config_sahara_dashboard { done } +function config_trove_dashboard { + for file in ${SITE_PACKAGES}/trove_dashboard/enabled/_*[^__].py; do + config_dashboard "${ENABLE_TROVE}" \ + "${SITE_PACKAGES}/trove_dashboard/enabled/${file##*/}" \ + "${SITE_PACKAGES}/openstack_dashboard/local/enabled/${file##*/}" + done +} + config_cloudkitty_dashboard config_ironic_dashboard config_manila_ui config_neutron_lbaas config_sahara_dashboard +config_trove_dashboard # NOTE(pbourke): httpd will not clean up after itself in some cases which # results in the container not being able to restart. (bug #1489676, 1557036) diff --git a/kolla/common/config.py b/kolla/common/config.py index ce69a82c79..487e24a173 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -222,6 +222,10 @@ SOURCES = { 'type': 'url', 'location': ('http://tarballs.openstack.org/sahara-dashboard/' 'sahara-dashboard-master.tar.gz')}, + 'horizon-plugin-trove-dashboard': { + 'type': 'url', + 'location': ('http://tarballs.openstack.org/trove-dashboard/' + 'trove-dashboard-master.tar.gz')}, 'ironic-base': { 'type': 'url', 'location': ('http://tarballs.openstack.org/ironic/'