aboutsummaryrefslogtreecommitdiff
path: root/docker/heat
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-03-09 17:44:54 +0100
committerMark Goddard <mark@stackhpc.com>2020-04-15 09:32:06 +0000
commit53443c5c712f4ec23b859105e94bcd90abc27762 (patch)
tree5bc6d8db4c65519e16d231b55f574e813e29da4b /docker/heat
parenta176c6e080be2e71829e8ca5e8b330fdda70038a (diff)
downloadkolla-53443c5c712f4ec23b859105e94bcd90abc27762.tar.gz
kolla-53443c5c712f4ec23b859105e94bcd90abc27762.zip
Remove support for CentOS 7
With the move to RHEL/CentOS 8 we no longer have Python 2 in our images so there is no need for checking which Python version (2.x or 3.x) is used inside of containers. We also no longer have to support yum as a value for distro_package_manager. Partially-Implements: blueprint centos-rhel-8 Change-Id: Ie45cf3465fedddbde7856961527421883ba3d5c9
Diffstat (limited to 'docker/heat')
-rw-r--r--docker/heat/heat-base/Dockerfile.j214
-rw-r--r--docker/heat/heat-engine/Dockerfile.j211
2 files changed, 4 insertions, 21 deletions
diff --git a/docker/heat/heat-base/Dockerfile.j2 b/docker/heat/heat-base/Dockerfile.j2
index bd8cfb661..4819f5291 100644
--- a/docker/heat/heat-base/Dockerfile.j2
+++ b/docker/heat/heat-base/Dockerfile.j2
@@ -15,13 +15,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set heat_base_packages = [
'httpd',
'mod_ssl',
- 'openstack-heat-common'
+ 'openstack-heat-common',
+ 'python3-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 \
@@ -43,12 +39,8 @@ RUN echo > /etc/apache2/ports.conf
{% set heat_base_packages = [
'httpd',
'mod_ssl',
+ 'python3-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 \
diff --git a/docker/heat/heat-engine/Dockerfile.j2 b/docker/heat/heat-engine/Dockerfile.j2
index fcb958109..04fa30486 100644
--- a/docker/heat/heat-engine/Dockerfile.j2
+++ b/docker/heat/heat-engine/Dockerfile.j2
@@ -10,19 +10,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set heat_engine_packages = [
- 'openstack-heat-engine'
- ] %}
- {% if distro_python_version.startswith('3') %}
- {% set heat_engine_packages = heat_engine_packages + [
+ 'openstack-heat-engine',
'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 %}