From 4beacffbecbba2aaa806a77ea18eb36d8dad435f Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Sat, 22 Aug 2015 10:51:52 +0000 Subject: [PATCH] Fix Glance for Ubuntu Change-Id: Ie442b60fbaadcb83fca060b811e95c07c773c8b8 Partially-Implements: blueprint install-from-ubuntu --- docker_templates/glance/glance-base/Dockerfile.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker_templates/glance/glance-base/Dockerfile.j2 b/docker_templates/glance/glance-base/Dockerfile.j2 index 1a092f1a76..181a78d56a 100644 --- a/docker_templates/glance/glance-base/Dockerfile.j2 +++ b/docker_templates/glance/glance-base/Dockerfile.j2 @@ -23,9 +23,10 @@ RUN ln -s /glance-* /glance RUN cd /glance \ && useradd --user-group glance \ && pip install -r requirements.txt \ - && pip install /glance \ - && mkdir /etc/glance /var/log/glance \ + && pip install --install-option="--install-scripts=/usr/bin" /glance \ + && mkdir -p /etc/glance /var/log/glance /home/glance \ && cp -r /glance/etc/* /etc/glance/ \ + && chown -R glance: /etc/glance /var/log/glance /home/glance \ && rm -rf /root/.cache {% endif %}