-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08758fe
commit e34b866
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM debian:bullseye AS debian-vm-build-base | ||
FROM debian:bookworm AS debian-vm-build-base | ||
WORKDIR /root | ||
RUN apt-get update && apt-get upgrade -y | ||
|
||
FROM debian-vm-build-base AS debian-vm-build-kernel | ||
WORKDIR /root | ||
RUN apt-get install -y build-essential linux-source kmod cpio initramfs-tools fakeroot libssl-dev lsb-release openssl libelf-dev rsync | ||
RUN apt-get install -y build-essential linux-source kmod cpio initramfs-tools fakeroot libssl-dev lsb-release openssl libelf-dev rsync python3 | ||
COPY build-kernel.sh ./ | ||
CMD ./build-kernel.sh | ||
|
||
FROM debian-vm-build-base AS debian-vm-build-rootfs | ||
WORKDIR /root | ||
RUN apt-get install -y debootstrap parted uuid udev | ||
RUN debootstrap bullseye rootfs https://deb.debian.org/debian/ | ||
RUN debootstrap bookworm rootfs https://deb.debian.org/debian/ | ||
COPY partition-image.sh build-rootfs.sh ./ | ||
CMD ./build-rootfs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters