kernel: Use local kernel source if available

The kernel build currently downloads the source tar ball every
time, which is a little tedious when experimenting with kernel
configs or when compiling the kernel multiple times.

This commit adds a new 'fetch' make target which downloads the
kernel sources into ./sources. Then in the Dockerfile we add
the directory and only download the source if it is not present.

The tarballs signature is till checked on each build.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer
2017-08-20 11:41:59 +01:00
parent 9362de0adb
commit ffcf5db6ee
3 changed files with 17 additions and 4 deletions

1
.gitignore vendored
View File

@@ -10,6 +10,7 @@ Dockerfile.media
*.vmdk
*.vmdk.lck
*.tar
*.tar.xz
*.gz
*.vhdx
*.efi