Skip to content

Commit 6317aab

Browse files
Merge pull request #16 from rh-ecosystem-edge/check-kernel-versions
Add kernel check
2 parents ee183d1 + abb87a8 commit 6317aab

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Containerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ ARG ENABLE_RT=''
88
USER root
99

1010
# kernel packages needed to build drivers / kmods
11-
RUN dnf config-manager --best --setopt=install_weak_deps=False --save
12-
13-
RUN dnf -y install \
11+
RUN microdnf -y install \
1412
kernel-devel${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1513
kernel-devel-matched${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1614
kernel-headers${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1715
kernel-modules${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1816
kernel-modules-extra${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1917
&& export INSTALLED_KERNEL=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core-${KERNEL_VERSION}) \
2018
&& export GCC_VERSION=$(cat /lib/modules/${INSTALLED_KERNEL}/config | grep -Eo "gcc \(GCC\) ([0-9\.]+)" | grep -Eo "([0-9\.]+)") \
21-
&& dnf -y install \
19+
&& microdnf -y install \
2220
binutils \
2321
diffutils \
2422
elfutils-libelf-devel \
@@ -34,7 +32,7 @@ RUN dnf -y install \
3432
pinentry \
3533
rpm-build \
3634
xz \
37-
&& dnf -y clean all \
35+
&& microdnf -y clean all \
3836
&& rm -rf /var/cache/yum \
3937
&& useradd -u 1001 -m -s /bin/bash builder
4038

argfile.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
BASEIMAGE=registry.redhat.io/ubi9/ubi:9.5
1+
BASEIMAGE=registry.redhat.io/ubi9/ubi-minimal:9.5-1739420147
22
KERNEL_VERSION=5.14.0-503.21.1.el9_5

0 commit comments

Comments
 (0)