Make sure to install libpython3.6 in the container

This commit is contained in:
xenia 2020-01-29 16:51:32 -05:00
parent 1f06847846
commit cc28607662
2 changed files with 4 additions and 1 deletions

View File

@ -6,5 +6,5 @@ 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"
systemd-nspawn -D "$dir" --bind "$PWD:/router" -- /bin/bash -c "cd /router && scripts/run-tests.sh /router/build"
fi

View File

@ -1,4 +1,7 @@
#!/bin/bash
rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
apt install libpython3.6
cd $1
./sim --router ../router milestone