Add Mirantis theme

Change-Id: Idd0acac88bde983e7411c1061ef847b502a6b7d8
This commit is contained in:
Proskurin Kirill 2017-01-31 17:19:57 +03:00
parent 456add09c9
commit 85ebc527d1
4 changed files with 12 additions and 4 deletions

View File

@ -11,6 +11,7 @@ RUN apt-get update \
{{ copy_sources("openstack/sahara-dashboard", "/sahara-dashboard") }}
{{ copy_sources("openstack/murano-dashboard", "/murano-dashboard") }}
{{ copy_sources("openstack/searchlight-ui", "/searchlight-ui") }}
{{ copy_sources("mirantis-theme", "/theme") }}
RUN mkdir -p /etc/openstack-dashboard /home/horizon /var/www/cgi-bin/horizon /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.d \
/var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/conf \
@ -29,13 +30,12 @@ RUN mkdir -p /etc/openstack-dashboard /home/horizon /var/www/cgi-bin/horizon /va
cp -a /searchlight-ui/searchlight_ui/conf/searchlight_policy.json /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/conf/; fi) \
&& (if [ -f /searchlight-ui/searchlight_ui/local_settings.d/_1001_search_settings.py ]; then \
cp -a /searchlight-ui/searchlight_ui/local_settings.d/_1001_search_settings.py /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.d/; fi) \
&& cp -r /theme/themes/vendor/ /horizon/openstack_dashboard/themes/ \
&& /var/lib/microservices/venv/bin/pip install --upgrade /horizon /sahara-dashboard /murano-dashboard /searchlight-ui \
&& useradd --user-group horizon \
&& ln -s /etc/openstack-dashboard/local_settings /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.py \
&& cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/ \
&& cp /horizon/manage.py /var/lib/microservices/venv/bin/manage.py \
&& /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py collectstatic --noinput --clear \
&& chown -R horizon: /etc/openstack-dashboard /home/horizon /var/lib/microservices/venv/lib/python2.7/site-packages/static /horizon
&& cp /horizon/manage.py /var/lib/microservices/venv/bin/manage.py
ENV PATH /var/lib/venv/bin:$PATH

View File

@ -10,6 +10,8 @@ configs:
processes: 6
threads: 15
theme: mirantis
sources:
openstack/horizon:
git_url: https://git.openstack.org/openstack/horizon.git
@ -23,3 +25,6 @@ sources:
openstack/searchlight-ui:
git_url: https://git.openstack.org/openstack/searchlight-ui.git
git_ref: stable/newton
mirantis-theme:
git_url: https://review.fuel-infra.org/openstack/horizon-vendor-theme
git_ref: 9.0/mitaka

View File

@ -437,7 +437,8 @@ TIME_ZONE = "UTC"
# ('default', 'Default', 'themes/default'),
# ('material', 'Material', 'themes/material'),
#]
AVAILABLE_THEMES = [('mirantis', 'Mirantis', 'themes/vendor')]
DEFAULT_THEME = "{{ horizon.theme }}"
LOGGING = {
'version': 1,
# When set to True this will disable all logging except

View File

@ -19,6 +19,8 @@ service:
pre:
- name: chown-logs-dir
command: "sudo /bin/chown horizon:horizon /var/log/ccp/horizon"
- name: horizon-collectstatic
command: /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py collectstatic --noinput --clear
- name: horizon-compress # Just for Mitaka compatibility
command: /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py compress
daemon: