-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
42 lines (33 loc) · 1.2 KB
/
Vagrantfile
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
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.provider :libvirt do |domain|
domain.memory = 8192
domain.cpus = 8
end
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [ ".git/", "h3/target", "quinn-interop/target" ]
config.vm.disk :disk, size: "100GB", primary: true
config.vm.provision "shell", inline: <<-SHELL
apt-get update
echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
curl \
docker \
docker-compose \
python3 \
python3-pip \
git\
wireshark \
tshark
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
usermod -aG docker vagrant
modprobe ip6table_filter
echo ip6table_filter >> /etc/modules
cd /vagrant/quic-interop-runner && pip3 install -r requirements.txt
echo "cd /vagrant/quic-interop-runner" >> /home/vagrant/.bashrc
if grep patch.crates.io /vagrant/h3/h3-quinn/Cargo.toml;then
cat cargo_patch.toml >> /vagrant/h3/h3-quinn/Cargo.toml
fi
SHELL
end