mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 07:00:10 +00:00
Out with the old, in with the new Moby
- remove remainder of editions code - add a new check container to run tests without Docker - switch over `make test` to use new command to build tests Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -2,22 +2,27 @@
|
||||
|
||||
set -e
|
||||
|
||||
KERNEL="kernel/x86_64/vmlinuz64"
|
||||
: ${INITRD:="alpine/initrd.img"}
|
||||
PREFIX="moby"
|
||||
[ $# -ge 1 ] && PREFIX="$1"
|
||||
|
||||
KERNEL="$PREFIX-bzImage"
|
||||
INITRD="$PREFIX-initrd.img"
|
||||
|
||||
CMDLINE="earlyprintk=serial console=ttyS0"
|
||||
|
||||
SLIRP_SOCK="$HOME/Library/Containers/com.docker.docker/Data/s50"
|
||||
|
||||
[ -f disk.img ] || dd if=/dev/zero of=disk.img bs=1048576 count=256
|
||||
|
||||
MEM="-m 1G"
|
||||
SMP="-c 1"
|
||||
SLIRP_SOCK=$(mktemp)
|
||||
NET="-s 2:0,virtio-vpnkit,path=$SLIRP_SOCK"
|
||||
IMG_HDD="-s 4,virtio-blk,disk.img"
|
||||
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
|
||||
RND="-s 5,virtio-rnd"
|
||||
LPC_DEV="-l com1,stdio"
|
||||
|
||||
bin/vpnkit --ethernet $SLIRP_SOCK &>/dev/null &
|
||||
trap "kill $!; rm $SLIRP_SOCK" EXIT
|
||||
#bin/vpnkit --ethernet $SLIRP_SOCK &>/dev/null &
|
||||
#trap "kill $!; rm $SLIRP_SOCK" EXIT
|
||||
|
||||
bin/com.docker.hyperkit -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_HDD $RND -u -f kexec,$KERNEL,$INITRD,"$CMDLINE"
|
||||
|
Reference in New Issue
Block a user