Browse Source

Make sure to install libpython3.6 in the container

master
haskal 11 months ago
parent
commit
cc28607662
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      scripts/nspawn-support.sh
  2. +3
    -0
      scripts/run-tests.sh

+ 1
- 1
scripts/nspawn-support.sh 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

+ 3
- 0
scripts/run-tests.sh 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

Loading…
Cancel
Save