small Alpine Linux install with Docker as next step toward replacing boot2docker

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2015-12-01 15:59:10 +00:00
parent 8fe3ead7d4
commit f3b16bee48
6 changed files with 34 additions and 0 deletions

10
alpine/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM alpine:edge
MAINTAINER Justin Cormack <justin.cormack@unikernel.com>
COPY repositories /etc/apk/repositories
COPY motd hostname /etc/
RUN apk update && apk upgrade && apk add e2fsprogs docker
RUN apk add cpio
CMD ["/bin/sh"]

9
alpine/Makefile Normal file
View File

@ -0,0 +1,9 @@
all: initrd.img
initrd.img: Dockerfile hostname repositories motd
rm -f initrd.img
docker build -t moby:test .
docker run -i -v $(PWD):/export moby:test /export/mkinitrd.sh
clean:
rm -f initrd.img

1
alpine/hostname Normal file
View File

@ -0,0 +1 @@
docker

3
alpine/mkinitrd.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
find / -xdev | cpio -H newc -o > /export/initrd.img

8
alpine/motd Normal file
View File

@ -0,0 +1,8 @@
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/

3
alpine/repositories Normal file
View File

@ -0,0 +1,3 @@
http://dl-4.alpinelinux.org/alpine/edge/main
http://dl-4.alpinelinux.org/alpine/edge/community
http://dl-4.alpinelinux.org/alpine/edge/testing