blob: 67a6183c64bf25a09d9fa38a1d2b4844a7bb7cad [file] [log] [blame]
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04001#!/bin/bash
2
3vmName="voltha_voltha"
4
5# Voltha directory
6cd ..
7
8# Destroy the VM if it's running
9vagrant destroy voltha
10
11# Bring up the VM.
12vagrant up voltha
13
14# Get the VM's ip address
15ipAddr=`virsh domifaddr $vmName | tail -n +3 | awk '{ print $4 }' | sed -e 's~/.*~~'`
16
17# Run all the build commands
18ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .vagrant/machines/voltha/libvirt/private_key vagrant@$ipAddr "cd /cord/incubator/voltha && . env.sh && make fetch && make"