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
This commit is contained in:
Sam Yaple 2015-08-27 10:31:27 +00:00
parent eecf6581a4
commit 9117902946

View File

@ -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 %}