aboutsummaryrefslogtreecommitdiff
path: root/docker/heat/heat-base/Dockerfile.j2
blob: 408167e90f2f49434b825a9e461dbe030a8c1986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 %}