diff options
author | platania <platania@research.att.com> | 2017-02-22 11:20:22 -0500 |
---|---|---|
committer | platania <platania@research.att.com> | 2017-02-22 11:20:22 -0500 |
commit | 4f98547c03dc9c8a295ae46e066ff09dd961d5a3 (patch) | |
tree | 5e7762e108feb7c81d1e7290a643ff611e9371f6 /boot/portal_vm_init.sh | |
parent | 8df4a643ae0d43a71e6e86c6be148386d99990ff (diff) |
pointing boot scripts to LF
Change-Id: I60094d422a5bf013f878e6efbee7a04c605f4045
Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/portal_vm_init.sh')
-rw-r--r-- | boot/portal_vm_init.sh | 18 |
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 |