contrib: add support for rhel9
authorMathias De Mare <mathias.de_mare@nokia.com>
Mon, 08 Aug 2022 17:27:49 +0200
changeset 49419 2edb41ed6c49
parent 49418 ccccd5064c6c
child 49420 3681a47611b8
contrib: add support for rhel9
Makefile
contrib/packaging/Makefile
contrib/packaging/docker/rhel9
--- a/Makefile	Mon Aug 08 17:26:04 2022 +0200
+++ b/Makefile	Mon Aug 08 17:27:49 2022 +0200
@@ -203,9 +203,11 @@
 packaging_targets := \
   rhel7 \
   rhel8 \
+  rhel9 \
   deb \
   docker-rhel7 \
   docker-rhel8 \
+  docker-rhel9 \
   docker-debian-bullseye \
   docker-debian-buster \
   docker-debian-stretch \
--- a/contrib/packaging/Makefile	Mon Aug 08 17:26:04 2022 +0200
+++ b/contrib/packaging/Makefile	Mon Aug 08 17:27:49 2022 +0200
@@ -15,7 +15,8 @@
 
 RHEL_RELEASES := \
   7 \
-  8
+  8 \
+  9
 
 # Build a Python for these RHEL (and derivatives) releases.
 RHEL_WITH_PYTHON_RELEASES :=
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/packaging/docker/rhel9	Mon Aug 08 17:27:49 2022 +0200
@@ -0,0 +1,25 @@
+FROM rockylinux/rockylinux:9
+
+RUN groupadd -g %GID% build && \
+    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
+
+RUN dnf install 'dnf-command(config-manager)' -y
+# crb repository is necessary for docutils
+RUN dnf config-manager --set-enabled crb
+
+RUN yum install -y \
+	gcc \
+	gettext \
+	make \
+	python3-devel \
+	python3-docutils \
+	rpm-build
+
+# For creating repo meta data
+RUN yum install -y createrepo
+
+# For rust extensions
+RUN yum install -y cargo
+
+# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
+RUN chmod 1777 /tmp