Skip to content

Commit

Permalink
container: build Rocky Linux 9 containers
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
  • Loading branch information
pcolberg committed Dec 11, 2023
1 parent 04dac1b commit 8927c74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
- image: rockylinux-kernel-devel
container: rockylinux-8-kernel-devel
tag: '8.8'
- image: rockylinux-kernel-devel
container: rockylinux-8-kernel-devel
tag: '9'
- image: rockylinux-kernel-devel
container: rockylinux-8-kernel-devel
tag: '9.0'
- image: rockylinux-kernel-devel
container: rockylinux-8-kernel-devel
tag: '9.2'
- image: ubuntu-kernel-devel
container: ubuntu-22.04-kernel-devel
tag: '20.04'
Expand Down
10 changes: 5 additions & 5 deletions container/rockylinux-8-kernel-devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ ARG tag=8
FROM rockylinux/rockylinux:${tag}
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG tag
# The PowerTools repository is needed for dwarves, which is a
# build dependency of the kernel makefile target rpm-pkg.
# On Rocky 8, the PowerTools repository is needed for dwarves, which
# is a build dependency of the kernel makefile target rpm-pkg.
# The EPEL repository is needed for dkms.
#
# When ${tag} is explicitly given as a minor version, e.g., 8.6,
# install packages from the vault repositories instead of the default
# mirrors. Otherwise, packages will be upgraded or installed from the
# latest minor release, e.g., 8.6 is upgraded to 8.9 or 8.10, which
# we want to specifically avoid, to build against older kernels.
RUN sed -i '/^enabled=/s#0#1#' /etc/yum.repos.d/Rocky-PowerTools.repo \
&& grep '^enabled=1$' /etc/yum.repos.d/Rocky-PowerTools.repo \
RUN ([[ "${tag}" != 8* ]] || sed -i '/^enabled=/s#0#1#' \
/etc/yum.repos.d/Rocky-PowerTools.repo) \
&& ([[ "${tag}" != *.* ]] || sed -i -e '/^mirrorlist/s,^,#,' \
-e "s,^#\\?\\(baseurl=http://dl.rockylinux.org\\)/\$contentdir/\$releasever/,\\1/vault/rocky/${tag}/," \
/etc/yum.repos.d/Rocky-*.repo) \
/etc/yum.repos.d/[Rr]ocky*.repo) \
&& yum -y upgrade \
&& yum -y install epel-release \
&& yum -y install \
Expand Down

0 comments on commit 8927c74

Please sign in to comment.