aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhubingbing <1392607554@qq.com>2016-12-01 04:00:35 +0000
committerzhubingbing <1392607554@qq.com>2016-12-01 15:44:31 +0000
commit51a08690f8719772ab4ecd9714663d0d534c58c0 (patch)
tree68e8c6034ef5a2ecd25498a43798993bf600e83a
parent6b5becdfc790f8ac4c71748954ce55290219d8a2 (diff)
downloadkolla-51a08690f8719772ab4ecd9714663d0d534c58c0.tar.gz
kolla-51a08690f8719772ab4ecd9714663d0d534c58c0.zip
Install trove dashboard into horizon image
Closes-Bug: #1646337 Change-Id: I1e9295da273055bfb870c7a87a32b989f3f61e8b
-rw-r--r--docker/horizon/Dockerfile.j27
-rw-r--r--docker/horizon/extend_start.sh9
-rw-r--r--kolla/common/config.py4
3 files changed, 18 insertions, 2 deletions
diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2
index 66296681f..a480735ce 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 97c283979..9bebdf94c 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 ce69a82c7..487e24a17 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/'