Skip to content

Commit d139c9a

Browse files
authored
Merge pull request #413 from vvoland/more-distros
Add RHEL10 derivatives (Alma, Oracle, Rocky Linux)
2 parents c2312bb + 503f625 commit d139c9a

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

docker-bake.hcl

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,21 @@ variable "DISTROS" {
2727

2828
"almalinux8",
2929
"almalinux9",
30+
"almalinux10",
3031
"centos9",
3132
"centos10",
3233
"fedora42",
3334
"fedora43",
3435
"fedora44",
3536
"oraclelinux8",
3637
"oraclelinux9",
38+
"oraclelinux10",
3739
"rhel8",
3840
"rhel9",
3941
"rhel10",
4042
"rockylinux8",
41-
"rockylinux9"
43+
"rockylinux9",
44+
"rockylinux10"
4245
]
4346
}
4447

@@ -291,6 +294,18 @@ target "_distro-almalinux9" {
291294
}
292295
}
293296

297+
target "_distro-almalinux10" {
298+
args = {
299+
DISTRO_NAME = "almalinux10"
300+
DISTRO_TYPE = "rpm"
301+
DISTRO_RELEASE = "almalinux"
302+
DISTRO_ID = "10"
303+
DISTRO_SUITE = "10"
304+
DISTRO_IMAGE = DISTRO_IMAGE != null && DISTRO_IMAGE != "" ? DISTRO_IMAGE : "almalinux:10"
305+
TEST_ONLY = "1"
306+
}
307+
}
308+
294309
target "_distro-centos9" {
295310
args = {
296311
DISTRO_NAME = "centos9"
@@ -375,6 +390,18 @@ target "_distro-oraclelinux9" {
375390
}
376391
}
377392

393+
target "_distro-oraclelinux10" {
394+
args = {
395+
DISTRO_NAME = "oraclelinux10"
396+
DISTRO_TYPE = "rpm"
397+
DISTRO_RELEASE = "oraclelinux"
398+
DISTRO_ID = "10"
399+
DISTRO_SUITE = "10"
400+
DISTRO_IMAGE = DISTRO_IMAGE != null && DISTRO_IMAGE != "" ? DISTRO_IMAGE : "oraclelinux:10"
401+
TEST_ONLY = "1"
402+
}
403+
}
404+
378405
target "_distro-rhel8" {
379406
args = {
380407
DISTRO_NAME = "rhel8"
@@ -435,6 +462,18 @@ target "_distro-rockylinux9" {
435462
}
436463
}
437464

465+
target "_distro-rockylinux10" {
466+
args = {
467+
DISTRO_NAME = "rockylinux10"
468+
DISTRO_TYPE = "rpm"
469+
DISTRO_RELEASE = "rockylinux"
470+
DISTRO_ID = "10"
471+
DISTRO_SUITE = "10"
472+
DISTRO_IMAGE = DISTRO_IMAGE != null && DISTRO_IMAGE != "" ? DISTRO_IMAGE : "rockylinux/rockylinux:10"
473+
TEST_ONLY = "1"
474+
}
475+
}
476+
438477
# Returns the list of supported platforms for a given distro and package.
439478
# The result is the intersection of the platforms supported by the distro
440479
# and the platforms supported by the package. Except for static distro,
@@ -457,18 +496,21 @@ function "distroPlatforms" {
457496

458497
almalinux8 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
459498
almalinux9 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
499+
almalinux10 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
460500
centos9 = ["linux/amd64", "linux/arm64", "linux/ppc64le"]
461501
centos10 = ["linux/amd64", "linux/arm64", "linux/ppc64le"]
462502
fedora42 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
463503
fedora43 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
464504
fedora44 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
465505
oraclelinux8 = ["linux/amd64", "linux/arm64"]
466506
oraclelinux9 = ["linux/amd64", "linux/arm64"]
507+
oraclelinux10 = ["linux/amd64", "linux/arm64"]
467508
rhel8 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
468509
rhel9 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
469510
rhel10 = ["linux/amd64", "linux/arm64", "linux/ppc64le", "linux/s390x"]
470511
rockylinux8 = ["linux/amd64", "linux/arm64"]
471512
rockylinux9 = ["linux/amd64", "linux/arm64"]
513+
rockylinux10 = ["linux/amd64", "linux/arm64"]
472514
}, distro, []),
473515
pkgPlatforms(pkg)
474516
),

hack/scripts/rpm-init.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ case "$pkgrelease" in
6262
dnf install -y git rpm-build rpmlint dnf-plugins-core oraclelinux-release-el9 oracle-epel-release-el9
6363
dnf config-manager --enable ol9_addons ol9_codeready_builder
6464
;;
65+
oraclelinux10)
66+
dnf install -y dnf-plugins-core oraclelinux-release-el10 oracle-epel-release-el10
67+
dnf config-manager --enable ol10_addons ol10_codeready_builder
68+
dnf install -y git rpm-build rpmlint
69+
;;
6570
fedora*)
6671
dnf install -y git rpm-build rpmlint dnf-plugins-core
6772
;;
@@ -70,8 +75,10 @@ case "$pkgrelease" in
7075
dnf config-manager --set-enabled powertools
7176
;;
7277
rockylinux*|almalinux*)
73-
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release
78+
dnf install -y dnf-plugins-core epel-release
7479
dnf config-manager --set-enabled crb
80+
# crb repo is needed for rpmlint
81+
dnf install -y git rpm-build rpmlint
7582
;;
7683
rhel*)
7784
# skipping rpmlint as it requires dependencies not available in ubi images

hack/scripts/verify-rpm-init.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ case "$pkgrelease" in
4747
dnf install -y findutils dnf-plugins-core oraclelinux-release-el9 oracle-epel-release-el9
4848
dnf config-manager --enable ol9_addons ol9_codeready_builder
4949
;;
50+
oraclelinux10)
51+
dnf install -y dnf-plugins-core oraclelinux-release-el10 oracle-epel-release-el10
52+
dnf config-manager --enable ol10_addons ol10_codeready_builder
53+
dnf install -y findutils
54+
;;
5055
fedora*|rhel*)
5156
dnf install -y findutils dnf-plugins-core
5257
;;

0 commit comments

Comments
 (0)