Add a (non modular) upstream kernel build, for pinata alpha and general testing

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2015-12-02 10:17:51 +00:00
parent cfc5296bda
commit 33056820a4
4 changed files with 3296 additions and 0 deletions

32
kernel/Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM debian:jessie
ENV KERNEL_VERSION 4.1.13
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
unzip \
xz-utils \
curl \
bc \
build-essential \
cpio \
gcc libc6 libc6-dev \
kmod \
squashfs-tools \
genisoimage \
xorriso \
syslinux \
isolinux \
automake \
pkg-config \
p7zip-full
ADD https://www.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.xz .
RUN cat linux-${KERNEL_VERSION}.tar.xz | tar --absolute-names -xJ && mv /linux-${KERNEL_VERSION} /linux
COPY kernel_config /linux/.config
RUN jobs=$(nproc); \
cd /linux && \
make -j ${jobs} oldconfig && \
make -j ${jobs} bzImage

8
kernel/Makefile Normal file
View File

@ -0,0 +1,8 @@
all: vmlinuz64
vmlinuz64:
docker build -t mobykernel:test .
docker run -i mobykernel:test cat /linux/arch/x86_64/boot/bzImage > vmlinuz64
clean:
rm vmlinuz64

3
kernel/README.md Normal file
View File

@ -0,0 +1,3 @@
Temporary non modular kernel config for pinata alpha
TODO: build with Alpine and/or use Alpine kernels - needs some patches.

3253
kernel/kernel_config Normal file

File diff suppressed because it is too large Load Diff