ale 6d1d969e3c
--build-arg
Signed-off-by: ale <ale@manalejandro.com>
2025-01-20 11:46:16 +01:00

26 lines
561 B
Markdown

# docker-deb-kernel
### Simple dockerfile to build the Linux kernel with debian packages
## Configure environment
$ export DISTRIBUTION=bookworm
$ export VERSION=6.12
Copy your kernel config to the `config` file
## Build image
$ docker buildx build --build-arg DISTRIBUTION=bookworm --build-arg VERSION=6.12 -t docker-deb-kernel .
## Extract .deb packages from container
$ docker run -d --rm --name ddk -v ./:/local docker-deb-kernel find /usr/src -iname *.deb -exec cp {} /local \;
## Install .deb packages
$ sudo dpkg -i *.deb
## License
MIT