-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (40 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
46 lines (40 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM fedora:latest
# Install Fedora kernel build dependencies and additional tools
RUN dnf -y update && \
dnf -y install \
fedpkg \
rpm-build \
ncurses-devel \
pesign \
gcc \
make \
flex \
bison \
openssl-devel \
elfutils-libelf-devel \
elfutils-devel \
wget \
curl \
jq \
xz \
bc \
perl \
openssl \
dracut \
ccache \
rsync \
hostname \
dwarves \
git && \
dnf clean all
WORKDIR /build
# Create infrastructure directory structure
RUN mkdir -p /build_scripts/infrastructure/kernel
# Copy the build script and logging script into the image
COPY build_kernel_fedora.sh /usr/local/bin/build_kernel_fedora.sh
COPY infrastructure/kernel/logging.sh /build_scripts/infrastructure/kernel/logging.sh
RUN chmod +x /usr/local/bin/build_kernel_fedora.sh
# Create a volume for output artifacts (kernel image, modules)
VOLUME ["/build"]
# Use the build script as the container entrypoint
ENTRYPOINT ["/usr/local/bin/build_kernel_fedora.sh"]