Move compress step to Dockerfile instead of runtime
Looks like the only missing thing was COMPRESS_OFFLINE = True in config Change-Id: I64bf3b494d153b0fc8650167b99e3926ce1d8489
This commit is contained in:
parent
8735f469dd
commit
5192e64c0c
|
@ -18,7 +18,8 @@ RUN mkdir -p /etc/openstack-dashboard /home/horizon /var/www/cgi-bin/horizon \
|
|||
&& 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
|
||||
&& chown -R horizon: /etc/openstack-dashboard /home/horizon /var/lib/microservices/venv/lib/python2.7/site-packages/static /horizon \
|
||||
&& /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py compress --force
|
||||
|
||||
ENV PATH /var/lib/venv/bin:$PATH
|
||||
|
||||
|
|
|
@ -713,3 +713,4 @@ REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES',
|
|||
# For more information see:
|
||||
# http://tinyurl.com/anticlickjack
|
||||
#DISALLOW_IFRAME_EMBED = True
|
||||
COMPRESS_OFFLINE = True
|
||||
|
|
|
@ -18,8 +18,6 @@ service:
|
|||
pre:
|
||||
- name: chown-logs-dir
|
||||
command: "sudo /bin/chown horizon:horizon /var/log/ccp/horizon"
|
||||
- name: horizon-compress
|
||||
command: /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py compress --force
|
||||
daemon:
|
||||
dependencies:
|
||||
- keystone
|
||||
|
|
Loading…
Reference in New Issue