[DO NOT MERGE] Add vendor theme
Change-Id: I8438519bd62fabfcc76d35088f0156e2345dfef1
This commit is contained in:
parent
26bf7c310c
commit
1042972220
|
@ -9,23 +9,16 @@ RUN apt-get update \
|
|||
|
||||
{{ copy_sources("openstack/horizon", "/horizon") }}
|
||||
{{ 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 \
|
||||
&& cp -a /sahara-dashboard/sahara_dashboard/enabled/* /horizon/openstack_dashboard/local/enabled/ \
|
||||
&& cp -a /searchlight-ui/searchlight_ui/enabled/_1001_project_search_panel.py /horizon/openstack_dashboard/local/enabled/ \
|
||||
&& (if [ -f /searchlight-ui/searchlight_ui/conf/searchlight_policy.json ]; then \
|
||||
cp -a /searchlight-ui/searchlight_ui/conf/searchlight_policy.json /horizon/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 /horizon/openstack_dashboard/local/local_settings.d/; fi) \
|
||||
&& /var/lib/microservices/venv/bin/pip install --upgrade /horizon /sahara-dashboard /murano-dashboard /searchlight-ui \
|
||||
&& cp /theme/local/local_settings.d/_10_set_custom_theme.py /horizon/openstack_dashboard/local/local_settings.d/ \
|
||||
&& cp -r /theme/themes/vendor/ /horizon/openstack_dashboard/themes/ \
|
||||
&& /var/lib/microservices/venv/bin/pip install --upgrade /horizon /sahara-dashboard \
|
||||
&& 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 -r /murano-dashboard/muranodashboard/conf/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/conf/ \
|
||||
&& cp -a /murano-dashboard/muranodashboard/local/enabled/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/enabled/ \
|
||||
&& cp -a /murano-dashboard/muranodashboard/local/local_settings.d/* /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/local/local_settings.d/ \
|
||||
&& 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 \
|
||||
|
@ -36,9 +29,6 @@ ENV PATH /var/lib/venv/bin:$PATH
|
|||
# Workaround for https://bugs.launchpad.net/osprofiler/+bug/1361235
|
||||
RUN sed -i "s#'../..'#os.path.realpath('../..')#" /var/lib/microservices/venv/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi
|
||||
|
||||
# TODO (amogylchenko): remove ugly sed for session_engine
|
||||
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
|
||||
|
||||
COPY daemon.sh /usr/local/bin/daemon.sh
|
||||
COPY horizon_sudoers /etc/sudoers.d/horizon_sudoers
|
||||
RUN chmod 755 /usr/local/bin/daemon.sh \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -437,7 +437,7 @@ TIME_ZONE = "UTC"
|
|||
# ('default', 'Default', 'themes/default'),
|
||||
# ('material', 'Material', 'themes/material'),
|
||||
#]
|
||||
|
||||
DEFAULT_THEME = "{{ horizon.theme }}"
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
# When set to True this will disable all logging except
|
||||
|
|
Loading…
Reference in New Issue