diff options
Diffstat (limited to 'docker/heat/heat-base')
| -rw-r--r-- | docker/heat/heat-base/Dockerfile.j2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docker/heat/heat-base/Dockerfile.j2 b/docker/heat/heat-base/Dockerfile.j2 new file mode 100644 index 000000000..408167e90 --- /dev/null +++ b/docker/heat/heat-base/Dockerfile.j2 @@ -0,0 +1,27 @@ +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 \ + && useradd --user-group heat \ + && pip --no-cache-dir install /heat \ + && mkdir -p /etc/heat /var/log/heat /home/heat \ + && cp -r /heat/etc/heat/* /etc/heat/ \ + && chown -R heat: /etc/heat /var/log/heat /home/heat + +{% endif %} |
