summaryrefslogtreecommitdiffstats
path: root/boot/asdc_vm_init.sh
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-02-27 15:44:09 -0500
committerplatania <platania@research.att.com>2017-02-27 15:44:09 -0500
commit5d963e8f55412d50f65cc7084daef3ff0e713e82 (patch)
tree15c77f44bb182aabeefa060b5b20de5cbbe0a46c /boot/asdc_vm_init.sh
parent9f274c0f999f1ec9b0344a368439af08638fa4ae (diff)
parametrize appc/sdnc docker-compose
Change-Id: I91b5475744a7459acece4dd6d5fe9d8c61694f48 Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/asdc_vm_init.sh')
-rw-r--r--boot/asdc_vm_init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/asdc_vm_init.sh b/boot/asdc_vm_init.sh
index 34c90746..024120db 100644
--- a/boot/asdc_vm_init.sh
+++ b/boot/asdc_vm_init.sh
@@ -3,6 +3,7 @@
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)
+NEXUS_DOCKER_PORT=$(echo $NEXUS_DOCKER_REPO | cut -d':' -f2)
ENV_NAME=$(cat /opt/config/env_name.txt)
RELEASE=latest
@@ -23,4 +24,4 @@ sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \"10.0.11.1,10.0.11.1\",/g" /dat
sed -i "s/\"fqdn\":.*/\"fqdn\": [\"10.0.11.1\", \"10.0.11.1\"]/g" /data/environments/$ENV_NAME.json
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
-bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p 10001
+bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT