From 53443c5c712f4ec23b859105e94bcd90abc27762 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 9 Mar 2020 17:44:54 +0100 Subject: 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 --- docker/glance/glance-api/Dockerfile.j2 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'docker/glance/glance-api') diff --git a/docker/glance/glance-api/Dockerfile.j2 b/docker/glance/glance-api/Dockerfile.j2 index 5f6635faa..7b42c8d12 100644 --- a/docker/glance/glance-api/Dockerfile.j2 +++ b/docker/glance/glance-api/Dockerfile.j2 @@ -8,12 +8,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% import "macros.j2" as macros with context %} {% if base_package_type == 'rpm' %} - {% if distro_package_manager == 'dnf' or base_distro not in ['centos'] %} - {% set glance_api_packages = ['qemu-img'] %} - {% else %} - {% set glance_api_packages = ['qemu-img-ev'] %} - {% endif %} - {% set glance_api_packages = glance_api_packages + ['nfs-utils'] %} + {% set glance_api_packages = ['qemu-img'] %} {% elif base_package_type == 'deb' %} {% set glance_api_packages = [ 'nfs-common', -- cgit v1.2.3