IMPALA-11450: Support building on Centos 8 alternatives

This adds support for Rocky Linux 8 and Alma Linux 8,
which are new Centos 8 alternatives. They use the
same toolchain as Centos 8.

Testing:
 - Ran docker-based tests on Rocky Linux and Alma Linux.
   The build passed and tests ran.

Change-Id: If10d71caa90d24e14d4cf6a28f5c27e03ef3c4c6
Reviewed-on: http://gerrit.cloudera.org:8080/18773
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Joe McDonnell
2022-07-21 15:12:22 -07:00
committed by Impala Public Jenkins
parent 1eb0510eaa
commit 88aee2f2b4
2 changed files with 7 additions and 3 deletions

View File

@@ -77,6 +77,8 @@ OS_MAPPING = [
OsMapping("centos6", "ec2-package-centos-6", "redhat6"),
OsMapping("centos7", "ec2-package-centos-7", "redhat7"),
OsMapping("centos8", "ec2-package-centos-8", "redhat8"),
OsMapping("rocky8", "ec2-package-centos-8", "redhat8"),
OsMapping("almalinux8", "ec2-package-centos-8", "redhat8"),
OsMapping("redhatenterpriseserver5", "ec2-package-centos-5", None),
OsMapping("redhatenterpriseserver6", "ec2-package-centos-6", "redhat6"),
OsMapping("redhatenterpriseserver7", "ec2-package-centos-7", "redhat7"),
@@ -401,7 +403,8 @@ def get_platform_release_label(release=None):
lsb_release = check_output(["lsb_release", "-irs"])
release = "".join(map(lambda x: x.lower(), lsb_release.split()))
# Only need to check against the major release if RHEL, CentOS or Suse
for distro in ['centos', 'redhatenterprise', 'redhatenterpriseserver', 'suse']:
for distro in ['centos', 'rocky', 'almalinux', 'redhatenterprise',
'redhatenterpriseserver', 'suse']:
if distro in release:
release = release.split('.')[0]
break