kolla-ansible/docker/centos/source/horizon/Dockerfile
Sam Yaple a656aedc8e Remove config-internal for Horizon
Change-Id: Iafde0b26008ad93f9a956192da73d59ccb593104
Partially-implements: blueprint remove-config-internal
2015-08-10 00:01:48 +00:00

30 lines
849 B
Docker

FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./horizon.tar /
RUN ln -s /horizon-* /horizon
RUN yum install -y \
httpd \
mod_wsgi \
&& yum clean all
# The chown is required because of this packaging bug:
# https://bugzilla.redhat.com/show_bug.cgi?id=1219006
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/static \
&& 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
COPY start.sh /
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]