X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Vagrantfile;h=8d9b971f4fc7b4e534117a6c58dacd99993b93cc;hb=3f15e17fa3e44ee269bd09044f3d130cee6e45b6;hp=30fd5197ecbc0ed1e75ce4bf10e5ad8381d4fcb0;hpb=c89ba38c6bf5ab503515c02c6ed7045320fd0a74;p=osm%2Fvim-emu.git diff --git a/Vagrantfile b/Vagrantfile index 30fd519..8d9b971 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -58,7 +58,10 @@ Vagrant.configure(2) do |config| # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. - config.vm.network "forwarded_port", guest: 5000, host: 5000 + 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: 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 # using a specific IP. @@ -122,9 +125,35 @@ Vagrant.configure(2) do |config| echo "Running son-emu unit tests to validate installation" cd /home/vagrant/son-emu sudo python setup.py develop - sudo py.test -v + sudo py.test -v src/emuvim/test/unittests + + # install son-cli + sudo apt-get install -y python-pip python-dev + sudo apt-get install -y python3.4 python3-dev libffi-dev libssl-dev libyaml-dev build-essential + sudo pip install virtualenv + cd /home/vagrant + git clone https://github.com/sonata-nfv/son-cli.git + cd son-cli + virtualenv -p /usr/bin/python3.4 venv + source venv/bin/activate + python bootstrap.py + bin/buildout + + # clone son-examples (disabled until repo goes public) + #cd /home/vagrant + #git clone https://github.com/sonata-nfv/son-examples.git + + # pre-fetch sonata example vnfs from DockerHub + echo "Fetching SONATA example VNF container from DockerHub/sonatanfv" + sudo docker pull sonatanfv/sonata-empty-vnf + sudo docker pull sonatanfv/sonata-iperf3-vnf + sudo docker pull sonatanfv/sonata-snort-ids-vnf + 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 SHELL