2015-09-17 16:35:33 +00:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
2015-11-23 07:08:58 +00:00
|
|
|
MAINTAINER {{ maintainer }}
|
2015-08-15 04:53:42 +00:00
|
|
|
|
2015-11-10 09:44:16 +00:00
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
|
|
|
|
RUN yum -y install \
|
|
|
|
openstack-heat-common \
|
|
|
|
&& yum clean all
|
|
|
|
|
2015-12-28 16:39:33 +00:00
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
|
|
heat-common \
|
|
|
|
&& apt-get clean
|
|
|
|
|
2015-11-10 09:44:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
2015-08-15 04:53:42 +00:00
|
|
|
|
2015-09-02 14:36:46 +00:00
|
|
|
ADD heat-base-archive /heat-base-source
|
|
|
|
RUN ln -s heat-base-source/* heat \
|
2015-08-15 04:53:42 +00:00
|
|
|
&& useradd --user-group heat \
|
2015-12-27 02:41:30 +00:00
|
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /heat \
|
2016-02-17 13:26:19 +00:00
|
|
|
&& mkdir -p /etc/heat /home/heat \
|
2015-08-16 16:09:21 +00:00
|
|
|
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
2016-02-17 13:26:19 +00:00
|
|
|
&& chown -R heat: /etc/heat /home/heat
|
2015-08-15 04:53:42 +00:00
|
|
|
|
|
|
|
{% endif %}
|
2015-11-09 23:24:06 +00:00
|
|
|
|
2016-02-17 13:26:19 +00:00
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
|
|
|
|
RUN usermod -a -G kolla heat \
|
2016-02-24 10:57:55 +00:00
|
|
|
&& touch /usr/local/bin/kolla_heat_extend_start \
|
|
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_heat_extend_start
|