aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorsu622b <sunil.unnava@att.com>2018-04-19 18:00:21 -0400
committersu622b <sunil.unnava@att.com>2018-04-19 18:00:53 -0400
commit41790f402053d3637a3e9201e6e00fe537e8b3cd (patch)
treea36daa7fc7fc3fdf797d023a73b7707d0969774c /boot
parentd6734920b03a9da00d0436c543b8da39ab3ebc2b (diff)
Updated the docker image
Issue-ID: DMAAP-433 Change-Id: Ia0c9ca8d3b3297e389d25925f341f0dcd2438dea Signed-off-by: su622b <sunil.unnava@att.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/mr_vm_init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot/mr_vm_init.sh b/boot/mr_vm_init.sh
index bfc44c7d..f0626762 100644
--- a/boot/mr_vm_init.sh
+++ b/boot/mr_vm_init.sh
@@ -2,6 +2,13 @@
export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+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 login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+
cd /opt/dcae-startup-vm-message-router
sed -i 's|wget .*|wget -q \"http://archive.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz\" \\|g' deploy.sh
bash deploy.sh &