Sign inSign up

arckosfr/buildkernel

By arckosfr

Updated almost 10 years ago

Container for build debian based kernel

Image
0

2.3K

arckosfr/buildkernel repository overview

docker-buildkernel

kernel builder container Based on https://github.com/droid4control/olinuxino-kernel

Building kernel using default config

Create new directory for kernel and modules

$ mkdir /tmp/new-kernel

Run docker container

$ docker run --rm -v /tmp/new-kernel:/data arckosfr/buildkernel
Different kernel version

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
Own config

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)

Build manually with menuconfig
$ docker run --rm -ti -v /tmp/new-kernel:/data arckosfr/buildkernel
Multiple builds

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

Building your own docker container

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 .

Tag summary

Content type

Image

Digest

Size

173.1 MB

Last updated

almost 10 years ago

docker pull arckosfr/buildkernel