aboutsummaryrefslogtreecommitdiff
path: root/docker/heat/heat-engine
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-22 22:26:25 +0000
committerGerrit Code Review <review@openstack.org>2016-07-22 22:26:25 +0000
commitdb4e2875b3e59a4814b7574a294f1a51baac4855 (patch)
tree8f5f958d3fd094db1abcf7f6396f19025af3c2a0 /docker/heat/heat-engine
parent753adbb22d0ad0e8652aeeb4d4599ab7ff03eea1 (diff)
parente5788a06e4efab9988be80a4a53df45c2e99318f (diff)
downloadkolla-db4e2875b3e59a4814b7574a294f1a51baac4855.tar.gz
kolla-db4e2875b3e59a4814b7574a294f1a51baac4855.zip
Merge "Customizations for heat"
Diffstat (limited to 'docker/heat/heat-engine')
-rw-r--r--docker/heat/heat-engine/Dockerfile.j228
1 files changed, 13 insertions, 15 deletions
diff --git a/docker/heat/heat-engine/Dockerfile.j2 b/docker/heat/heat-engine/Dockerfile.j2
index 4c7335f68..e0d5ede54 100644
--- a/docker/heat/heat-engine/Dockerfile.j2
+++ b/docker/heat/heat-engine/Dockerfile.j2
@@ -1,25 +1,23 @@
FROM {{ namespace }}/{{ image_prefix }}heat-base:{{ tag }}
MAINTAINER {{ maintainer }}
+{% import "macros.j2" as macros with context %}
+
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
-
-# TODO(SamYaple): until packaging is fixed, all of the python clients below are required
-# http://pkgs.fedoraproject.org/cgit/openstack-heat.git/tree/openstack-heat.spec#n248
-RUN yum -y install \
- python-barbicanclient \
- python-zaqarclient \
- openstack-heat-engine \
- && yum clean all
-
- {% elif base_distro in ['ubuntu'] %}
-
-RUN apt-get -y install --no-install-recommends \
- heat-engine \
- && apt-get clean
-
+ {% set heat_engine_packages = [
+ 'python-barbicanclient',
+ 'python-zaqarclient',
+ 'openstack-heat-engine'
+ ] %}
+ {% elif base_distro in ['ubuntu'] %}
+ {% set heat_engine_packages = ['heat-engine'] %}
{% endif %}
+RUN {{ macros.install_packages(heat_engine_packages | customizable("packages")) }}
+
{% endif %}
+{% block heat_engine_footer %}{% endblock %}
+{% block footer %}{% endblock %}
{{ include_footer }}