Container for build debian based kernel
2.3K
kernel builder container Based on https://github.com/droid4control/olinuxino-kernel
Create new directory for kernel and modules
$ mkdir /tmp/new-kernel
Run docker container
$ docker run --rm -v /tmp/new-kernel:/data arckosfr/buildkernel
Default kernel version is 4.3. You can compile any kernel version using environment variable "VERSION"
$ docker run --rm -v /tmp/new-kernel:/data -e VERSION=4.3 arckosfr/buildkernel
This docker container has one config file included. To use your own config file just copy it to the /data directory
$ cp myconfig /tmp/new-kernel/config
NB! This file will be overwritten with actual config (after use of menuconfig)
$ docker run --rm -ti -v /tmp/new-kernel:/data arckosfr/buildkernel
Do not use "--rm" flag to build more than once using the same runnig container (download kernel source once)
$ docker run --name=mybuild -ti -v /tmp/new-kernel:/data arckosfr/buildkernel /bin/true
$ docker start mybuild
Enter to the container and run "/root/build.sh" or commands manually
$ docker exec -ti mybuild /bin/bash
# /root/build.sh
Remove container afterwards
$ docker stop mybuild
$ docker rm mybuild
To build your own container just fork this repository or clone it
$ git clone https://github.com/arckosfr/buildkernel.git
$ cd docker-buildkernel
$ docker build -t docker-buildkernel .
Content type
Image
Digest
Size
173.1 MB
Last updated
almost 10 years ago
docker pull arckosfr/buildkernel