Add Usecase-UI docker run instructions in demo 85/14485/2
authorshentao <shentao@chinamobile.com>
Fri, 22 Sep 2017 07:03:20 +0000 (15:03 +0800)
committerMarco Platania <platania@research.att.com>
Fri, 22 Sep 2017 15:12:17 +0000 (15:12 +0000)
Change-Id: I7a464d0be3702a207bd524620090919da67eeaed
Issue-Id: USECASEUI-44
Signed-off-by: shentao <shentao@chinamobile.com>
boot/uui_vm_init.sh

index 630293d..ebec9e3 100755 (executable)
@@ -6,7 +6,16 @@ NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
 NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
 DOCKER_IMAGE_VERSION=$(cat /opt/config/uui_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/uui/ui:$DOCKER_IMAGE_VERSION
+docker pull $NEXUS_DOCKER_REPO/onap/uui/server:$DOCKER_IMAGE_VERSION
+
+docker rm -f uui_ui
+docker rm -f uui_server
 
-# Insert docker run instructions here
\ No newline at end of file
+# Insert docker run instructions here
+docker run -i -t -d --name uui_ui -e MSB_ADDR=$OPENO_IP:80 $NEXUS_DOCKER_REPO/onap/uui/ui:$DOCKER_IMAGE_VERSION
+docker run -i -t -d --name uui_server -e MSB_ADDR=$OPENO_IP:80 $NEXUS_DOCKER_REPO/onap/uui/server:$DOCKER_IMAGE_VERSION
\ No newline at end of file