aboutsummaryrefslogtreecommitdiff
path: root/docker/centos
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2015-08-04 17:53:46 +0000
committerPaul Bourke <paul.bourke@oracle.com>2015-08-10 16:01:01 +0000
commit328be709fde4cacc5bce6c6b6461e89474335fcb (patch)
tree3f7bc6a4050a0126232e15b4635d6136271b11af /docker/centos
parentfe9092bab7ecfc58aa10ba4165c9bf21a99170e2 (diff)
downloadkolla-328be709fde4cacc5bce6c6b6461e89474335fcb.tar.gz
kolla-328be709fde4cacc5bce6c6b6461e89474335fcb.zip
Fix missing config in horizon source image
Horizon depends on quite a bit of config being in place, most of which a simple pip install doesn't setup for us. Closes-Bug: #1481667 Change-Id: I326458d211c16688c00eb04af4bb70978ea3c048
Diffstat (limited to 'docker/centos')
-rw-r--r--docker/centos/source/horizon/Dockerfile15
1 files changed, 11 insertions, 4 deletions
diff --git a/docker/centos/source/horizon/Dockerfile b/docker/centos/source/horizon/Dockerfile
index bf3445cfa..b2ae89a5f 100644
--- a/docker/centos/source/horizon/Dockerfile
+++ b/docker/centos/source/horizon/Dockerfile
@@ -9,14 +9,21 @@ RUN yum install -y \
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 \
+ && mkdir -p \
+ /etc/openstack-dashboard \
+ /usr/share/openstack-dashboard/static \
+ /var/log/horizon \
+ && 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