Merge "Install neutron-lbaas-dashboard from source in horizon container"
This commit is contained in:
commit
fdb33d04ec
@ -94,6 +94,7 @@ RUN echo > /etc/apache2/ports.conf \
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ADD horizon-archive /horizon-source
|
ADD horizon-archive /horizon-source
|
||||||
|
ADD plugins-archive /
|
||||||
RUN ln -s horizon-source/* horizon \
|
RUN ln -s horizon-source/* horizon \
|
||||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /horizon \
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /horizon \
|
||||||
&& useradd --user-group horizon \
|
&& useradd --user-group horizon \
|
||||||
@ -102,6 +103,11 @@ RUN ln -s horizon-source/* horizon \
|
|||||||
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
|
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
|
||||||
&& cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings \
|
&& cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings \
|
||||||
&& cp /horizon/manage.py /var/lib/kolla/venv/bin/manage.py \
|
&& cp /horizon/manage.py /var/lib/kolla/venv/bin/manage.py \
|
||||||
|
&& if [ "$(ls /plugins)" ]; then \
|
||||||
|
pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /plugins/*; \
|
||||||
|
ln -s `find /plugins -name 'neutron-lbaas-dashboard-*' -type d`/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py \
|
||||||
|
/var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py; \
|
||||||
|
fi \
|
||||||
&& /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py collectstatic --noinput --clear \
|
&& /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py collectstatic --noinput --clear \
|
||||||
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/horizon && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/horizon && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
||||||
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
&& (cd /var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \
|
||||||
|
@ -209,6 +209,10 @@ SOURCES = {
|
|||||||
'type': 'url',
|
'type': 'url',
|
||||||
'location': ('http://tarballs.openstack.org/horizon/'
|
'location': ('http://tarballs.openstack.org/horizon/'
|
||||||
'horizon-master.tar.gz')},
|
'horizon-master.tar.gz')},
|
||||||
|
'horizon-plugin-neutron-lbaas-dashboard': {
|
||||||
|
'type': 'url',
|
||||||
|
'location': ('http://tarballs.openstack.org/neutron-lbaas-dashboard/'
|
||||||
|
'neutron-lbaas-dashboard-master.tar.gz')},
|
||||||
'ironic-base': {
|
'ironic-base': {
|
||||||
'type': 'url',
|
'type': 'url',
|
||||||
'location': ('http://tarballs.openstack.org/ironic/'
|
'location': ('http://tarballs.openstack.org/ironic/'
|
||||||
|
@ -824,8 +824,14 @@ class KollaWorker(object):
|
|||||||
(re.search('{}-plugin-.+'.format(image.name),
|
(re.search('{}-plugin-.+'.format(image.name),
|
||||||
section) for section in
|
section) for section in
|
||||||
self.conf.list_all_sections()) if match]:
|
self.conf.list_all_sections()) if match]:
|
||||||
self.conf.register_opts(common_config.get_source_opts(),
|
try:
|
||||||
plugin)
|
self.conf.register_opts(
|
||||||
|
common_config.get_source_opts(),
|
||||||
|
plugin
|
||||||
|
)
|
||||||
|
except cfg.DuplicateOptError:
|
||||||
|
LOG.debug('Plugin %s already registered in config',
|
||||||
|
plugin)
|
||||||
image.plugins.append(
|
image.plugins.append(
|
||||||
process_source_installation(image, plugin))
|
process_source_installation(image, plugin))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user