From 91179029461b5a33a1de6cca286a1e2c806fbf23 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Thu, 27 Aug 2015 10:31:27 +0000 Subject: [PATCH] Unify Centos and Ubuntu Source Install - Heat A change merged in the base allows for Centos and Ubuntu to install all python things to the same locations. This updates the source section to reflect that change. Change-Id: Ieff2fdcbdebc38e381a1cbb92297c89ef412ac03 Partially-Implements: blueprint install-from-ubuntu --- docker_templates/heat/heat-base/Dockerfile.j2 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docker_templates/heat/heat-base/Dockerfile.j2 b/docker_templates/heat/heat-base/Dockerfile.j2 index 858148f31c..408167e90f 100644 --- a/docker_templates/heat/heat-base/Dockerfile.j2 +++ b/docker_templates/heat/heat-base/Dockerfile.j2 @@ -16,15 +16,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ {% endif %} {% elif install_type == 'source' %} -ADD ./heat.tar / -RUN ln -s /heat-* /heat - -RUN cd /heat \ +ADD heat.tar / +RUN ln -s /heat-* heat \ && useradd --user-group heat \ - && pip install -r requirements.txt \ - && pip install /heat \ - && mkdir /etc/heat /var/log/heat \ + && pip --no-cache-dir install /heat \ + && mkdir -p /etc/heat /var/log/heat /home/heat \ && cp -r /heat/etc/heat/* /etc/heat/ \ - && rm -rf /root/.cache + && chown -R heat: /etc/heat /var/log/heat /home/heat {% endif %}