Skip to content

Commit

Permalink
add RHEL9 clones almalinux:9 and rocklylinux:9
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 5, 2022
1 parent b685d35 commit f53085a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion setup_build_containers.sh
Expand Up @@ -100,9 +100,13 @@ for DISTRO in $RPM_DISTROS; do
#with stream8 and stream9,
#we have to enable EPEL to get the PowerTools repo:
RHEL8=0
RHEL9=0
if [[ "${DISTRO_LOWER}" == *"stream8"* ]]; then
RHEL8=1
fi
if [[ "${DISTRO_LOWER}" == *"stream9"* ]]; then
RHEL9=1
fi
if [[ "${DISTRO_LOWER}" == *"oraclelinux:8"* ]]; then
RHEL8=1
#the development headers live in this repo:
Expand All @@ -111,13 +115,19 @@ for DISTRO in $RPM_DISTROS; do
if [[ "${DISTRO_LOWER}" == *"rockylinux:8"* ]]; then
RHEL8=1
fi
if [[ "${DISTRO_LOWER}" == *"rockylinux:9"* ]]; then
RHEL9=1
fi
if [[ "${DISTRO_LOWER}" == *"almalinux:8"* ]]; then
RHEL8=1
fi
if [[ "${DISTRO_LOWER}" == *"almalinux:9"* ]]; then
RHEL9=1
fi
if [ "${RHEL8}" == "1" ]; then
buildah run $IMAGE_NAME $PM_CMD install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
fi
if [[ "${DISTRO_LOWER}" == *"stream9"* ]]; then
if [ "${RHEL9}" == "1" ]; then
buildah run $IMAGE_NAME $PM_CMD install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
buildah run $IMAGE_NAME $PM_CMD config-manager --set-enabled crb
fi
Expand Down

0 comments on commit f53085a

Please sign in to comment.