merge son-monitor update with upstream
[osm/vim-emu.git] / Vagrantfile
old mode 100644 (file)
new mode 100755 (executable)
index 395757e..b87a9f5
@@ -60,7 +60,7 @@ Vagrant.configure(2) do |config|
   # accessing "localhost:8080" will access port 80 on the guest machine.
   config.vm.network "forwarded_port", guest: 5000, host: 5000 # dummy gatekeeper
   config.vm.network "forwarded_port", guest: 5001, host: 5001 # REST API
-  config.vm.network "forwarded_port", guest: 8080, host: 8080 # cAdvisor
+  config.vm.network "forwarded_port", guest: 8081, host: 8081 # cAdvisor
   config.vm.network "forwarded_port", guest: 9091, host: 9091 # push gateway
 
   # Create a private network, which allows host-only access to the machine
@@ -140,8 +140,17 @@ Vagrant.configure(2) do |config|
      bin/buildout
 
      # clone son-examples (disabled until repo goes public)
-     #cd /home/vagrant
-     #git clone https://github.com/sonata-nfv/son-examples.git
+     cd /home/vagrant
+     git clone https://github.com/sonata-nfv/son-examples.git
+
+     # prepare VM for some special containers (PF_RING)
+     cd /home/vagrant/son-examples/vnfs/sonata-vtc-vnf-docker/
+     chmod +x prepare_host.sh
+     sudo ./prepare_host.sh
+
+     # place motd
+     cd /home/vagrant/son-emu
+     sudo cp utils/vagrant/motd /etc/motd
 
      # pre-fetch sonata example vnfs from DockerHub
      echo "Fetching SONATA example VNF container from DockerHub/sonatanfv"
@@ -151,10 +160,7 @@ Vagrant.configure(2) do |config|
      sudo docker pull sonatanfv/sonata-ovs1-vnf
      sudo docker pull sonatanfv/sonata-ryu-vnf
      sudo docker pull sonatanfv/sonata-vtc-vnf
-
-     # place motd
-     cd /home/vagrant/son-emu
-     sudo cp utils/vagrant/motd /etc/motd
+     sudo docker pull sonatanfv/son-emu-sap
   SHELL
 
   # TODO the native ansible provisioner does not work so we directly call the shell commands