Alicja Kwasniewska fcda6a06d8 Keystone installation from source
Makes use of new gen-source-tar script to provide a source based
keystone image.

This patch introduces a new concept of a .buildinfo file, which provides
variables specific to the image being built which cannot be defaulted in
a generic way, at least until the build script is overhauled. This file
is sourced before the .buildconf which still leaves everything
customisable by the user.

Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
Change-Id: I0ec6b9cfe6d4173f3192e4ae5833fb0f6d333f1c
Implements: blueprint install-from-source
2015-07-09 11:06:58 +00:00

31 lines
1.1 KiB
Docker

FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install \
httpd \
mod_wsgi \
&& yum clean all
ADD ./keystone.tar /
RUN ln -s /keystone-* /keystone
RUN cd /keystone \
&& useradd --user-group keystone \
&& pip install -r requirements.txt \
&& pip install /keystone \
&& mkdir /etc/keystone /var/log/keystone /var/www/cgi-bin/keystone \
&& cp /keystone/etc/keystone.conf.sample /etc/keystone/keystone.conf \
&& cp -r /keystone/etc/* /etc/keystone/ \
&& cp -a httpd/wsgi-keystone.conf /etc/httpd/conf.d \
&& sed -i 's,/var/log/apache2,/var/log/httpd,' /etc/httpd/conf.d/wsgi-keystone.conf \
&& sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
&& cp -a httpd/keystone.py /var/www/cgi-bin/keystone/main \
&& cp -a httpd/keystone.py /var/www/cgi-bin/keystone/admin \
&& chown -R keystone: /var/www/cgi-bin/keystone /var/log/keystone \
&& chmod 755 /var/www/cgi-bin/keystone/*
COPY start.sh check.sh /
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]