Skip to content

Commit

Permalink
rpm: add rockylinux 8 and 9
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 6, 2024
1 parent 54ebfa2 commit d70a116
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ include common/packages.mk

GHA_MATRIX ?= minimal
ifeq ($(GHA_MATRIX),minimal)
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2310 centos7 centos9 oraclelinux7 fedora39 static
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2310 centos7 centos9 oraclelinux7 fedora39 rockylinux9 static
else ifeq ($(GHA_MATRIX),all)
GHA_RELEASES := $(PKG_DEB_RELEASES) $(PKG_RPM_RELEASES) static
else
Expand Down
22 changes: 22 additions & 0 deletions common/packages.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,28 @@ target "_pkg-oraclelinux9" {
}
}

target "_pkg-rockylinux8" {
args = {
PKG_RELEASE = "rockylinux8"
PKG_TYPE = "rpm"
PKG_DISTRO = "rockylinux"
PKG_DISTRO_ID = "8"
PKG_DISTRO_SUITE = "8"
PKG_BASE_IMAGE = "rockylinux/rockylinux:8"
}
}

target "_pkg-rockylinux9" {
args = {
PKG_RELEASE = "rockylinux9"
PKG_TYPE = "rpm"
PKG_DISTRO = "rockylinux"
PKG_DISTRO_ID = "9"
PKG_DISTRO_SUITE = "9"
PKG_BASE_IMAGE = "rockylinux/rockylinux:9"
}
}

target "_pkg-static" {
args = {
PKG_RELEASE = ""
Expand Down
20 changes: 19 additions & 1 deletion common/packages.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# if you add a new release
PKG_APK_RELEASES ?= alpine314 alpine315 alpine316
PKG_DEB_RELEASES ?= debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2304 ubuntu2310 raspbian10 raspbian11 raspbian12
PKG_RPM_RELEASES ?= centos7 centos8 centos9 fedora37 fedora38 fedora39 oraclelinux7 oraclelinux8 oraclelinux9
PKG_RPM_RELEASES ?= centos7 centos8 centos9 fedora37 fedora38 fedora39 oraclelinux7 oraclelinux8 oraclelinux9 rockylinux8 rockylinux9

# PKG_SUPPORTED_PLATFORMS could be replaced by:
# docker buildx imagetools inspect centos:7 --format "{{json .Manifest}}" | jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)/\(.platform.variant)"' | sed 's#/null$##' | tr '\n' ',' | sed 's#,$##'
Expand Down Expand Up @@ -241,6 +241,24 @@ pkg-info-oraclelinux9:
$(eval PKG_BASE_IMAGE = oraclelinux:9)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64)

.PHONY: pkg-info-rockylinux8
pkg-info-rockylinux8:
$(eval PKG_TYPE = rpm)
$(eval PKG_DISTRO = rockylinux)
$(eval PKG_DISTRO_ID = 8)
$(eval PKG_DISTRO_SUITE = 8)
$(eval PKG_BASE_IMAGE = rockylinux/rockylinux:8)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64)

.PHONY: pkg-info-rockylinux9
pkg-info-rockylinux9:
$(eval PKG_TYPE = rpm)
$(eval PKG_DISTRO = rockylinux)
$(eval PKG_DISTRO_ID = 9)
$(eval PKG_DISTRO_SUITE = 9)
$(eval PKG_BASE_IMAGE = rockylinux/rockylinux:9)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64)

.PHONY: pkg-info-static
pkg-info-static:
$(eval PKG_TYPE = static)
Expand Down
8 changes: 8 additions & 0 deletions common/scripts/rpm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,12 @@ case "$pkgrelease" in
fedora*)
dnf install -y git rpm-build rpmlint dnf-plugins-core
;;
rockylinux8)
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release
dnf config-manager --set-enabled devel
;;
rockylinux*)
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
;;
esac
8 changes: 8 additions & 0 deletions common/scripts/verify-rpm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,12 @@ case "$pkgrelease" in
fedora*)
dnf install -y findutils dnf-plugins-core
;;
rockylinux8)
dnf install -y findutils dnf-plugins-core epel-release
dnf config-manager --set-enabled devel
;;
rockylinux*)
dnf install -y findutils dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
;;
esac
4 changes: 2 additions & 2 deletions pkg/credential-helpers/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
extraflags=""
case "$PKG_RELEASE" in
# required pass package not available
centos7|oraclelinux9)
centos7|oraclelinux9|rockylinux8)
extraflags="--skip-broken"
;;
centos9)
Expand All @@ -89,7 +89,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
docker-credential-secretservice version
case "$PKG_RELEASE" in
# FIXME: skip pass credential helper smoke test for some distros
centos7|centos9|oraclelinux9) ;;
centos7|centos9|oraclelinux9|rockylinux8) ;;
*) docker-credential-pass version ;;
esac
EOT
Expand Down

0 comments on commit d70a116

Please sign in to comment.