mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 17:01:07 +00:00
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:
parent
8fe3ead7d4
commit
f3b16bee48
10
alpine/Dockerfile
Normal file
10
alpine/Dockerfile
Normal 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
9
alpine/Makefile
Normal 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
1
alpine/hostname
Normal file
@ -0,0 +1 @@
|
||||
docker
|
3
alpine/mkinitrd.sh
Executable file
3
alpine/mkinitrd.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
find / -xdev | cpio -H newc -o > /export/initrd.img
|
8
alpine/motd
Normal file
8
alpine/motd
Normal file
@ -0,0 +1,8 @@
|
||||
## .
|
||||
## ## ## ==
|
||||
## ## ## ## ## ===
|
||||
/"""""""""""""""""\___/ ===
|
||||
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
||||
\______ o __/
|
||||
\ \ __/
|
||||
\____\_______/
|
3
alpine/repositories
Normal file
3
alpine/repositories
Normal 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
|
Loading…
Reference in New Issue
Block a user