blob: f3bb3643b57aa670e747fc8382039aea18051341 [file] [log] [blame]
dmcoomes8fb3a542017-11-01 14:26:42 -05001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4$script = <<SCRIPT
Ashlesh Gawande6c86e302019-09-17 22:27:05 -05005ln -s /vagrant /home/vagrant/mini-ndn
dmcoomes8fb3a542017-11-01 14:26:42 -05006
Ashlesh Gawande6c86e302019-09-17 22:27:05 -05007# Check if install.sh is present or someone just copied the Vagrantfile directly
8if [[ -f /home/vagrant/mini-ndn/install.sh ]]; then
9 pushd /home/vagrant/mini-ndn
10else
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
15fi
Saurab Dulal7b3655a2018-01-02 22:40:35 +000016./install.sh -a
Ashlesh Gawande6c86e302019-09-17 22:27:05 -050017
dmcoomes8fb3a542017-11-01 14:26:42 -050018SCRIPT
19
20Vagrant.configure(2) do |config|
Ashlesh Gawande6c86e302019-09-17 22:27:05 -050021 config.vm.box = "ubuntu/bionic64"
dmcoomes8fb3a542017-11-01 14:26:42 -050022 config.vm.provision "shell", privileged: false, inline: $script
23 config.vm.provider "virtualbox" do |vb|
24 vb.name = "mini-ndn_box"
Ashlesh Gawande6c86e302019-09-17 22:27:05 -050025 vb.memory = 4096
26 vb.cpus = 4
dmcoomes8fb3a542017-11-01 14:26:42 -050027 end
28end