summaryrefslogtreecommitdiffstats
path: root/ocata/vagrant/test/test_multicloud.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ocata/vagrant/test/test_multicloud.sh')
-rw-r--r--ocata/vagrant/test/test_multicloud.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/ocata/vagrant/test/test_multicloud.sh b/ocata/vagrant/test/test_multicloud.sh
index 9206f310..4cb17dd6 100644
--- a/ocata/vagrant/test/test_multicloud.sh
+++ b/ocata/vagrant/test/test_multicloud.sh
@@ -2,11 +2,18 @@
set -ex
sudo apt-get update -y
-sudo apt-get install -y docker.io
+sudo apt-get install -y docker.io maven npm
-cd /openstack/ocata/docker
-sudo docker build -t multicloud-ocata:latest .
-cd /vagrant/test
+git clone http://gerrit.onap.org/r/oparent
+mkdir $HOME/.m2
+cp oparent/settings.xml $HOME/.m2
+
+git clone /openstack
+cd openstack
+mvn clean install
+cp ocata/target/multicloud-openstack-ocata*.zip ocata/vagrant/test/multicloud-openstack-ocata.zip
+
+cd ocata/vagrant/test
sudo docker build -t multicloud-ocata-test:latest .
sudo docker network create --subnet=172.16.77.0/24 onap
sudo docker run -d -t --name ocata-test --network onap --ip 172.16.77.40 -e MSB_ADDR=172.16.77.40 -e MSB_PORT=9006 multicloud-ocata-test