033d437bf9
There was an error during docker-templates for heat. I think I copied keystone's example rather then looking at our from source reference. Change-Id: Id073ce0b0d9e72acb3b752f49a2b8cfcd5d51851 Partially Implements: blueprint docker-templates
31 lines
775 B
Django/Jinja
31 lines
775 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
|
|
|
RUN yum -y install \
|
|
python-oslo-reports \
|
|
&& yum clean all
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD ./heat.tar /
|
|
RUN ln -s /heat-* /heat
|
|
|
|
RUN cd /heat \
|
|
&& useradd --user-group heat \
|
|
&& pip install -r requirements.txt \
|
|
&& pip install /heat \
|
|
&& mkdir /etc/heat /var/log/heat \
|
|
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
|
&& rm -rf /root/.cache
|
|
|
|
{% endif %}
|