From b4d692fae2cbfa2355cb8db4aab9f6b75c7421c5 Mon Sep 17 00:00:00 2001 From: Artur Zarzycki Date: Mon, 28 Dec 2015 12:17:16 +0100 Subject: [PATCH] Keystone ubuntu binary container Change-Id: Ibacbc5e2d3988c646998f6e69e2ea34c69e039f8 Partially-Implements: blueprint binary-ubuntu --- docker/keystone/Dockerfile.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker/keystone/Dockerfile.j2 b/docker/keystone/Dockerfile.j2 index 033385ee6e..d85728b9c3 100644 --- a/docker/keystone/Dockerfile.j2 +++ b/docker/keystone/Dockerfile.j2 @@ -15,6 +15,19 @@ RUN mkdir -p /var/www/cgi-bin/keystone \ && cp -a /usr/share/keystone/keystone.wsgi /var/www/cgi-bin/keystone/admin \ && sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf + {% elif base_distro in ['ubuntu'] %} + +RUN apt-get install -y --no-install-recommends \ + keystone \ + apache2 \ + libapache2-mod-wsgi \ + && apt-get clean + +RUN mkdir -p /var/www/cgi-bin/keystone \ + && cp -a /usr/share/keystone/wsgi.py /var/www/cgi-bin/keystone/main \ + && cp -a /usr/share/keystone/wsgi.py /var/www/cgi-bin/keystone/admin \ + && echo > /etc/apache2/ports.conf + {% endif %} {% elif install_type == 'source' %} {% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}