11 lines
382 B
Bash
11 lines
382 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
cmd="$1"
|
||
|
dir="$2"
|
||
|
|
||
|
if [ "$cmd" == "create" ]; then
|
||
|
debootstrap --include=systemd-container --include=libpython3.6 --include=racket --components=main,universe bionic "$dir" http://archive.ubuntu.com/ubuntu/
|
||
|
elif [ "$cmd" == "boot" ]; then
|
||
|
systemd-nspawn -D "$dir" --bind "$PWD:/router" -- /bin/bash -c "cd /router && scripts/run-tests.sh /router/build; bash"
|
||
|
fi
|