aboutsummaryrefslogtreecommitdiffstats
path: root/boot/asdc_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/asdc_vm_init.sh')
-rw-r--r--boot/asdc_vm_init.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot/asdc_vm_init.sh b/boot/asdc_vm_init.sh
new file mode 100644
index 00000000..f0777d5f
--- /dev/null
+++ b/boot/asdc_vm_init.sh
@@ -0,0 +1,9 @@
+#!/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)
+ENV_NAME=$(cat /opt/config/env_name.txt)
+
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+bash /data/scripts/docker_run.sh -e $ENV_NAME