-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
41 lines (32 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
build:
docker build -t docker-volumes-nfs .
docker create --name test-vnfs docker-volumes-nfs
docker cp test-vnfs:/go/bin/app .
docker rm test-vnfs
run:
sudo ./app
containerrun:
docker run --rm -it --privileged \
-v /run/docker/plugins:/run/docker/plugins \
-v /var/lib/docker/volumes/:/var/lib/docker/volumes \
-v /data:/data \
docker-volumes-nfs
test:
docker run --rm -it --volume-driver=nfs -v Users/:/no busybox ls -la /no
nfs:
docker run --rm -it --volume-driver=nfs -v 127.0.0.1/data:/no busybox ls -la
iso: build
cp app experimental/docker-volume-nfs
docker build -t boot2docker:experimental experimental/
docker run --name boot2docker-run boot2docker:experimental > experimental/boot2docker.iso
docker cp boot2docker-run:/linux-kernel/arch/x86_64/boot/bzImage experimental/
docker cp boot2docker-run:/tmp/iso/boot/vmlinuz64 experimental/
docker cp boot2docker-run:/tmp/iso/boot/initrd.img experimental/
docker rm boot2docker-run
run:
qemu-system-x86_64 -serial stdio \
-curses \
-net nic,vlan=0 -net user,vlan=0 \
-m 2048M \
-kernel experimental/vmlinuz64 -initrd experimental/initrd.img \
-append "root=/dev/ram0 rw sven=test panic=0 append loglevel=7 user=docker console=ttyAMA0 console=ttyS0 console=tty0 apparmor=0 selinux=1 noembed nomodeset norestore base"