mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-05 20:57:37 +00:00
Use a base image for building kernel
As we do not have a simple way to hash Debian, use the Docker sha256 until we switch to Alpine. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
24
alpine/base/debian-build-kernel/Dockerfile
Normal file
24
alpine/base/debian-build-kernel/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM debian:jessie
|
||||
|
||||
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 \
|
||||
git \
|
||||
ncurses-dev \
|
||||
p7zip-full \
|
||||
lzop \
|
||||
wget \
|
||||
vim
|
||||
10
alpine/base/debian-build-kernel/Makefile
Normal file
10
alpine/base/debian-build-kernel/Makefile
Normal file
@@ -0,0 +1,10 @@
|
||||
# no easy hashing scheme for Debian, will switch to Alpine soon so temporarily use sha256
|
||||
.PHONY: push
|
||||
|
||||
BASE=debian:jessie
|
||||
IMAGE=debian-build-kernel
|
||||
|
||||
push:
|
||||
docker pull $(BASE)
|
||||
tar cf - Dockerfile | docker build --no-cache -t mobylinux/$(IMAGE):latest -
|
||||
docker push mobylinux/$(IMAGE):latest
|
||||
Reference in New Issue
Block a user