37283874d0
Added missing copy and link commands: && cp -r /horizon/openstack_dashboard /usr/share/openstack-dashboard/ \ && cp /horizon/openstack_dashboard/local/local_settings.py.example \ /etc/openstack-dashboard/local_settings \ && ln -s /etc/openstack-dashboard/local_settings \ /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py \ && cp /horizon/manage.py /usr/share/openstack-dashboard \ && python /usr/share/openstack-dashboard/manage.py collectstatic --noinput \ Changed 'mkdir -p /usr/share/openstack-dashboard/static' to 'mkdir -p /usr/share/openstack-dashboard' Change-Id: Ia79c43d771ab2b3628112a9c4d0e6bb2d3348f4f Closes-Bug: 1487028
61 lines
1.8 KiB
Django/Jinja
61 lines
1.8 KiB
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net.kolla)
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
|
|
|
RUN yum -y install \
|
|
openstack-dashboard \
|
|
httpd \
|
|
mod_wsgi \
|
|
&& yum clean all \
|
|
&& chown -R apache:apache /usr/share/openstack-dashboard/static
|
|
|
|
# The chown is required because of this packaging bug:
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1219006
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD ./horizon.tar /
|
|
RUN ln -s /horizon-* /horizon
|
|
|
|
RUN yum install -y \
|
|
httpd \
|
|
mod_wsgi \
|
|
&& yum clean all
|
|
|
|
RUN cd /horizon \
|
|
&& useradd --user-group horizon \
|
|
&& pip install -r requirements.txt \
|
|
&& pip install /horizon \
|
|
&& mkdir -p \
|
|
/etc/openstack-dashboard \
|
|
/var/log/horizon \
|
|
/usr/share/openstack-dashboard \
|
|
&& cp -r /horizon/openstack_dashboard /usr/share/openstack-dashboard/ \
|
|
&& cp /horizon/openstack_dashboard/local/local_settings.py.example \
|
|
/etc/openstack-dashboard/local_settings \
|
|
&& ln -s /etc/openstack-dashboard/local_settings \
|
|
/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py \
|
|
&& cp /horizon/manage.py /usr/share/openstack-dashboard \
|
|
&& python /usr/share/openstack-dashboard/manage.py collectstatic --noinput \
|
|
&& chown -R apache:apache /usr/share/openstack-dashboard/static \
|
|
&& rm -rf /root/.cache
|
|
|
|
# The chown is required because of this packaging bug:
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1219006
|
|
|
|
{% endif %}
|
|
|
|
COPY config-external.sh /opt/kolla/
|
|
COPY start.sh /
|
|
|
|
CMD ["/start.sh"]
|