aboutsummaryrefslogtreecommitdiffstats
path: root/boot/portal_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/portal_vm_init.sh')
-rw-r--r--boot/portal_vm_init.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/boot/portal_vm_init.sh b/boot/portal_vm_init.sh
index 744c4fc9..f15999ec 100644
--- a/boot/portal_vm_init.sh
+++ b/boot/portal_vm_init.sh
@@ -4,18 +4,28 @@ 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)
+cd /opt/portal
+git pull
+cd /opt
+
+chmod +x portal/deliveries/new_start.sh
+chmod +x portal/deliveries/new_stop.sh
+chmod +x portal/deliveries/dbstart.sh
+unzip -o portal/deliveries/etc.zip -d /PROJECT/OpenSource/UbuntuEP/
+
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
-docker pull $NEXUS_DOCKER_REPO/ecomp/portaldb:1610.3
-docker pull $NEXUS_DOCKER_REPO/ecomp/portalapps:1610.3
+docker pull $NEXUS_DOCKER_REPO/openecomp/portaldb:1.0.0
+docker pull $NEXUS_DOCKER_REPO/openecomp/portalapps:1.0.0
docker create --name data_vol_portal -v /var/lib/mysql mariadb
-docker tag 6ce6ea8c6e52 ecompdb:portal
-docker tag 925a8a953d4c ep:1610-1
+docker tag $NEXUS_DOCKER_REPO/openecomp/portaldb:1.0.0 ecompdb:portal
+docker tag $NEXUS_DOCKER_REPO/openecomp/portalapps:1.0.0 ep:1610-1
docker rm -f ecompdb_portal
docker rm -f 1610-1
+cd portal/deliveries
./dbstart.sh
./new_start.sh