32 lines
1.3 KiB
Django/Jinja
32 lines
1.3 KiB
Django/Jinja
FROM {{ namespace }}/openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
#mysql-client only for provisioning need to be removed later
|
|
#netcat is for mysql alive test
|
|
RUN apt-get install -y --no-install-recommends \
|
|
apache2 \
|
|
libapache2-mod-wsgi \
|
|
mysql-client \
|
|
&& echo > /etc/apache2/ports.conf \
|
|
&& apt-get clean
|
|
|
|
|
|
RUN curl -o keystone-{{ branch }}.tar.gz http://tarballs.openstack.org/keystone/keystone-{{ branch }}.tar.gz \
|
|
&& tar -zxvf keystone-{{ branch }}.tar.gz
|
|
|
|
RUN mv keystone*/ keystone-{{ branch }}/ \
|
|
&& ln -s keystone-{{ branch }} /keystone \
|
|
&& useradd --user-group keystone \
|
|
&& /var/lib/microservices/venv/bin/pip --no-cache-dir install --upgrade -c /keystone/requirements.txt /keystone \
|
|
&& mkdir -p /etc/keystone /var/www/cgi-bin/keystone /var/log/apache2 /home/keystone \
|
|
&& cp -r /keystone/etc/* /etc/keystone/ \
|
|
&& cp /keystone/httpd/keystone.py /var/www/cgi-bin/keystone/admin \
|
|
&& cp /keystone/httpd/keystone.py /var/www/cgi-bin/keystone/main \
|
|
&& chown -R keystone: /etc/keystone /var/www/cgi-bin/keystone /var/log/apache2 /home/keystone
|
|
|
|
RUN chown -R keystone: /var/www/cgi-bin/keystone \
|
|
&& chmod 755 /var/www/cgi-bin/keystone/*
|
|
|
|
COPY daemon.sh /usr/local/bin/daemon.sh
|
|
RUN chmod 755 /usr/local/bin/daemon.sh
|