-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
12 lines (10 loc) · 609 Bytes
/
Copy pathDockerfile
File metadata and controls
12 lines (10 loc) · 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
FROM fedora:38
ARG RPMBUILD_PATH=/root/rpmbuild
ARG FEDORA_KERNEL_VERSION=6.4.16-200.fc38 # https://bodhi.fedoraproject.org/updates/?search=&packages=kernel&releases=f38
RUN dnf install -y fedpkg fedora-packager rpmdevtools ncurses-devel pesign git libkcapi libkcapi-devel libkcapi-static libkcapi-tools zip curl dwarves libbpf rpm-sign \
&& rpmdev-setuptree \
&& cd ${RPMBUILD_PATH}/SOURCES \
&& koji download-build --arch=src kernel-${FEDORA_KERNEL_VERSION} \
&& rpm -Uvh kernel-${FEDORA_KERNEL_VERSION}.src.rpm \
&& cd ${RPMBUILD_PATH}/SPECS \
&& dnf -y builddep kernel.spec