dmcoomes | 8fb3a54 | 2017-11-01 14:26:42 -0500 | [diff] [blame] | 1 | # -*- mode: ruby -*- |
| 2 | # vi: set ft=ruby : |
| 3 | |
| 4 | $script = <<SCRIPT |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 5 | ln -s /vagrant /home/vagrant/mini-ndn |
dmcoomes | 8fb3a54 | 2017-11-01 14:26:42 -0500 | [diff] [blame] | 6 | |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 7 | # Check if install.sh is present or someone just copied the Vagrantfile directly |
| 8 | if [[ -f /home/vagrant/mini-ndn/install.sh ]]; then |
| 9 | pushd /home/vagrant/mini-ndn |
| 10 | else |
| 11 | # Remove the symlink |
| 12 | rm /home/vagrant/mini-ndn |
| 13 | git clone --depth 1 https://github.com/named-data/mini-ndn.git |
| 14 | pushd mini-ndn |
| 15 | fi |
Saurab Dulal | 7b3655a | 2018-01-02 22:40:35 +0000 | [diff] [blame] | 16 | ./install.sh -a |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 17 | |
dmcoomes | 8fb3a54 | 2017-11-01 14:26:42 -0500 | [diff] [blame] | 18 | SCRIPT |
| 19 | |
| 20 | Vagrant.configure(2) do |config| |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 21 | config.vm.box = "ubuntu/bionic64" |
dmcoomes | 8fb3a54 | 2017-11-01 14:26:42 -0500 | [diff] [blame] | 22 | config.vm.provision "shell", privileged: false, inline: $script |
| 23 | config.vm.provider "virtualbox" do |vb| |
| 24 | vb.name = "mini-ndn_box" |
Ashlesh Gawande | 6c86e30 | 2019-09-17 22:27:05 -0500 | [diff] [blame] | 25 | vb.memory = 4096 |
| 26 | vb.cpus = 4 |
dmcoomes | 8fb3a54 | 2017-11-01 14:26:42 -0500 | [diff] [blame] | 27 | end |
| 28 | end |