Merge "Customizations for heat"
This commit is contained in:
commit
db4e2875b3
@ -1,25 +1,21 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}heat-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}heat-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set heat_api_packages = ['openstack-heat-api'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-heat-api \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set heat_api_packages = ['heat-api'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
heat-api \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
RUN {{ macros.install_packages(heat_api_packages | customizable("packages")) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_heat_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_heat_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_heat_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_heat_extend_start
|
||||||
|
|
||||||
|
{% block heat_api_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER heat
|
USER heat
|
||||||
|
@ -1,20 +1,17 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set heat_base_packages = ['openstack-heat-common'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openstack-heat-common \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set heat_base_packages = ['heat-common'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
heat-common \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
RUN {{ macros.install_packages(heat_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
{% elif install_type == 'source' %}
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
ADD heat-base-archive /heat-base-source
|
ADD heat-base-archive /heat-base-source
|
||||||
|
@ -1,25 +1,23 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}heat-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}heat-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set heat_engine_packages = [
|
||||||
# TODO(SamYaple): until packaging is fixed, all of the python clients below are required
|
'python-barbicanclient',
|
||||||
# http://pkgs.fedoraproject.org/cgit/openstack-heat.git/tree/openstack-heat.spec#n248
|
'python-zaqarclient',
|
||||||
RUN yum -y install \
|
'openstack-heat-engine'
|
||||||
python-barbicanclient \
|
] %}
|
||||||
python-zaqarclient \
|
|
||||||
openstack-heat-engine \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu'] %}
|
{% elif base_distro in ['ubuntu'] %}
|
||||||
|
{% set heat_engine_packages = ['heat-engine'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
{% endif %}
|
||||||
heat-engine \
|
RUN {{ macros.install_packages(heat_engine_packages | customizable("packages")) }}
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% block heat_engine_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user