aboutsummaryrefslogtreecommitdiff
path: root/docker/heat
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2017-03-14 17:15:27 +0100
committerMartin André <m.andre@redhat.com>2017-03-14 17:55:07 +0100
commit76ab2b84f464ebe619bc5abc30d083187763642e (patch)
treed94f00336b64235cf029e0221cd4eb620b2097f0 /docker/heat
parentae40ec099fba83efced09c3f67431f719e0aafd8 (diff)
downloadkolla-76ab2b84f464ebe619bc5abc30d083187763642e.tar.gz
kolla-76ab2b84f464ebe619bc5abc30d083187763642e.zip
Add Apache packages to heat containers
Some projects that use Kolla docker containers (TripleO) run heat under httpd. This patch adds the httpd package so that it exists in the container and can optionally by used via Docker entrypoints. As many of these projects do not require the use of Apache (it is opt-in) at this point not all deployment frameworks support the use of it so the existing configuration defaults have been left as-is for now. Change-Id: I4d648c4ce4f5f6ba311bfbbf9c78e06104163c61 Partially-Implements: blueprint apache-packages-for-apis
Diffstat (limited to 'docker/heat')
-rw-r--r--docker/heat/heat-base/Dockerfile.j230
1 files changed, 28 insertions, 2 deletions
diff --git a/docker/heat/heat-base/Dockerfile.j2 b/docker/heat/heat-base/Dockerfile.j2
index b22290e38..5e7e76a1c 100644
--- a/docker/heat/heat-base/Dockerfile.j2
+++ b/docker/heat/heat-base/Dockerfile.j2
@@ -10,14 +10,40 @@ MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
- {% set heat_base_packages = ['openstack-heat-common'] %}
+ {% set heat_base_packages = [
+ 'openstack-heat-common',
+ 'httpd',
+ 'mod_wsgi'
+ ] %}
{% elif base_distro in ['ubuntu'] %}
- {% set heat_base_packages = ['heat-common'] %}
+ {% set heat_base_packages = [
+ 'heat-common',
+ 'apache2',
+ 'libapache2-mod-wsgi',
+ ] %}
{% endif %}
{{ macros.install_packages(heat_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
+{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
+
+ {% set heat_base_packages = [
+ 'httpd',
+ 'mod_wsgi'
+ ] %}
+
+{% elif base_distro in ['ubuntu'] %}
+
+ {% set heat_base_packages = [
+ 'apache2',
+ 'libapache2-mod-wsgi'
+ ] %}
+
+{% endif %}
+
+{{ macros.install_packages(heat_base_packages | customizable("packages")) }}
+
ADD heat-base-archive /heat-base-source
{% set heat_base_pip_packages = [