mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-03 07:02:52 +00:00
Use patched aufs-utils so can compile kernel with alpine
This is going to be submitted upstream. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -1,2 +1,22 @@
|
||||
FROM alpine:3.4
|
||||
RUN apk update && apk upgrade && apk add build-base util-linux-dev linux-headers
|
||||
RUN \
|
||||
apk update && apk upgrade && \
|
||||
apk add \
|
||||
alpine-sdk \
|
||||
automake \
|
||||
bash \
|
||||
bc \
|
||||
curl \
|
||||
gmp-dev \
|
||||
installkernel \
|
||||
kmod \
|
||||
linux-headers \
|
||||
perl \
|
||||
sed \
|
||||
squashfs-tools \
|
||||
syslinux \
|
||||
unzip \
|
||||
util-linux-dev \
|
||||
vim \
|
||||
xz \
|
||||
&& true
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
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
|
||||
@@ -1,14 +0,0 @@
|
||||
# no easy hashing scheme for Debian, will switch to Alpine soon so temporarily use sha256
|
||||
.PHONY: push
|
||||
|
||||
BASE=debian:jessie
|
||||
IMAGE=debian-build-kernel
|
||||
|
||||
TAG := $(shell cat /dev/urandom | od -N6 -t x2 | head -n1 | cut -b9- | sed 's/ //g')
|
||||
|
||||
push:
|
||||
docker pull $(BASE)
|
||||
tar cf - Dockerfile | docker build --no-cache -t mobylinux/$(IMAGE):$(TAG) -
|
||||
docker tag mobylinux/$(IMAGE):$(TAG) mobylinux/$(IMAGE):latest
|
||||
docker push mobylinux/$(IMAGE):$(TAG)
|
||||
docker push mobylinux/$(IMAGE):latest
|
||||
Reference in New Issue
Block a user