Add build from source for Horizon

Change-Id: I1af1454a6373c543ef1a0f81c2da1546540c6d2f
Partially-implements: blueprint install-from-source
This commit is contained in:
Swapnil Kulkarni 2015-07-16 09:02:33 +00:00
parent e70e422ca8
commit 7a3025ec52
7 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# Build info specific to this image. All values can be overridden in .buildconf
COMPONENT=horizon
SOURCE_INSTALL_AVAILABLE=1
# Used for git install method
: ${CLONE_FROM:=https://github.com/openstack/horizon}
# Used for curl install method
: ${TARBALL_URI:=http://tarballs.openstack.org/horizon/horizon-master.tar.gz}

View File

@ -0,0 +1,31 @@
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 config-internal.sh config-external.sh /opt/kolla/
COPY ./start.sh /start.sh
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../common/horizon/config-external.sh

View File

@ -0,0 +1 @@
../../../common/horizon/config-internal.sh

View File

@ -0,0 +1 @@
../../../common/horizon/horizon-bug-1469284.patch

View File

@ -0,0 +1 @@
../../../common/horizon/start.sh