summaryrefslogtreecommitdiffstats
path: root/boot/mvim_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/mvim_vm_init.sh')
-rwxr-xr-xboot/mvim_vm_init.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/boot/mvim_vm_init.sh b/boot/mvim_vm_init.sh
new file mode 100755
index 00000000..ecdb9216
--- /dev/null
+++ b/boot/mvim_vm_init.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Establish environment variables
+NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
+NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
+NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
+DOCKER_IMAGE_VERSION=$(cat /opt/config/mvim_docker.txt)
+
+source /opt/config/onap_ips.txt
+
+# Refresh images
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+docker pull $NEXUS_DOCKER_REPO/onap/multicloud/framework:latest
+docker pull $NEXUS_DOCKER_REPO/onap/multicloud/vio:latest
+
+docker rm -f multicloud-broker
+docker rm -f multicloud-vio
+
+docker run -e MS_ADDR=$OPENO_IP -e AAI_ADDR=$AAI_IP1 -p 9001:9001 --name multicloud-broker framework
+docker run -e MS_ADDR=$OPENO_IP -e AAI_ADDR=$AAI_IP1 -p 9004:9004 --name multicloud-vio vio \ No newline at end of file