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:
Justin Cormack
2016-09-29 15:44:35 +01:00
parent 6781379543
commit 0214c41ff3
8 changed files with 31 additions and 50 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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