summaryrefslogtreecommitdiffstats
path: root/boot/music_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/music_vm_init.sh')
-rw-r--r--boot/music_vm_init.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/boot/music_vm_init.sh b/boot/music_vm_init.sh
new file mode 100644
index 00000000..b18aa998
--- /dev/null
+++ b/boot/music_vm_init.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+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/docker_version.txt)
+
+docker pull library/zookeeper:3.4
+docker pull library/tomcat:8.5
+
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+docker pull $NEXUS_DOCKER_REPO/onap/music/Cassandra:$DOCKER_IMAGE_VERSION
+docker pull $NEXUS_DOCKER_REPO/onap/music/music:$DOCKER_IMAGE_VERSION \ No newline at end of file