summaryrefslogtreecommitdiffstats
path: root/boot/vid_vm_init.sh
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-02-22 11:20:22 -0500
committerplatania <platania@research.att.com>2017-02-22 11:20:22 -0500
commit4f98547c03dc9c8a295ae46e066ff09dd961d5a3 (patch)
tree5e7762e108feb7c81d1e7290a643ff611e9371f6 /boot/vid_vm_init.sh
parent8df4a643ae0d43a71e6e86c6be148386d99990ff (diff)
pointing boot scripts to LF
Change-Id: I60094d422a5bf013f878e6efbee7a04c605f4045 Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/vid_vm_init.sh')
-rw-r--r--boot/vid_vm_init.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/boot/vid_vm_init.sh b/boot/vid_vm_init.sh
index fa019760..6a39c9c0 100644
--- a/boot/vid_vm_init.sh
+++ b/boot/vid_vm_init.sh
@@ -4,12 +4,16 @@ 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/vid
+git pull
+cd /opt
+
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
-docker pull $NEXUS_DOCKER_REPO/ecomp/vid:1.0.0
+docker pull $NEXUS_DOCKER_REPO/openecomp/vid:1.0.0
docker rm -f vid-mariadb
docker rm -f vid-server
-docker run --name vid-mariadb -e MYSQL_DATABASE=vid_openecomp -e MYSQL_USER=vidadmin -e MYSQL_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -e MYSQL_ROOT_PASSWORD=LF+tp_1WqgSY -v /opt/vid-my.cnf:/etc/mysql/my.cnf -v /opt/vid-pre-init.sql:/docker-entrypoint-initdb.d/vid-pre-init.sql -v /var/lib/mysql -d mariadb:10
+docker run --name vid-mariadb -e MYSQL_DATABASE=vid_openecomp -e MYSQL_USER=vidadmin -e MYSQL_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -e MYSQL_ROOT_PASSWORD=LF+tp_1WqgSY -v /opt/vid/lf_config/vid-my.cnf:/etc/mysql/my.cnf -v /opt/vid/lf_config/vid-pre-init.sql:/docker-entrypoint-initdb.d/vid-pre-init.sql -v /var/lib/mysql -d mariadb:10
-docker run -e VID_MYSQL_DBNAME=vid_openecomp -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/ecomp/vid:1.0.0
+docker run -e VID_MYSQL_DBNAME=vid_openecomp -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:1.0.0