diff options
Diffstat (limited to 'docker/heat')
| -rw-r--r-- | docker/heat/heat-base/Dockerfile.j2 | 14 | ||||
| -rw-r--r-- | docker/heat/heat-engine/Dockerfile.j2 | 15 |
2 files changed, 24 insertions, 5 deletions
diff --git a/docker/heat/heat-base/Dockerfile.j2 b/docker/heat/heat-base/Dockerfile.j2 index a5e2405ac..2a73abbfd 100644 --- a/docker/heat/heat-base/Dockerfile.j2 +++ b/docker/heat/heat-base/Dockerfile.j2 @@ -13,9 +13,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% set heat_base_packages = [ 'httpd', 'mod_ssl', - 'mod_wsgi', 'openstack-heat-common' ] %} + {% if distro_python_version.startswith('3') %} + {% set heat_base_packages = heat_base_packages + ['python3-mod_wsgi'] %} + {% else %} + {% set heat_base_packages = heat_base_packages + ['mod_wsgi'] %} + {% endif %} + {{ macros.install_packages(heat_base_packages | customizable("packages")) }} RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \ && sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf @@ -36,8 +41,13 @@ RUN echo > /etc/apache2/ports.conf {% set heat_base_packages = [ 'httpd', 'mod_ssl', - 'mod_wsgi' ] %} + {% if distro_python_version.startswith('3') %} + {% set heat_base_packages = heat_base_packages + ['python3-mod_wsgi'] %} + {% else %} + {% set heat_base_packages = heat_base_packages + ['mod_wsgi'] %} + {% endif %} + {{ macros.install_packages(heat_base_packages | customizable("packages")) }} RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \ && sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf diff --git a/docker/heat/heat-engine/Dockerfile.j2 b/docker/heat/heat-engine/Dockerfile.j2 index 56e7b5144..524bf2fc3 100644 --- a/docker/heat/heat-engine/Dockerfile.j2 +++ b/docker/heat/heat-engine/Dockerfile.j2 @@ -7,11 +7,20 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% if install_type == 'binary' %} {% if base_package_type == 'rpm' %} - {% set heat_engine_packages = [ - 'python-barbicanclient', - 'python-zaqarclient', + {% set heat_engine_packages = [ 'openstack-heat-engine' ] %} + {% if distro_python_version.startswith('3') %} + {% set heat_engine_packages = heat_engine_packages + [ + 'python3-barbicanclient', + 'python3-zaqarclient' + ] %} + {% else %} + {% set heat_engine_packages = heat_engine_packages + [ + 'python-barbicanclient', + 'python-zaqarclient' + ] %} + {% endif %} {% elif base_package_type == 'deb' %} {% set heat_engine_packages = ['heat-engine'] %} {% endif %} |
