From ca323313781c200570c56cb17e07174373af6d7a Mon Sep 17 00:00:00 2001 From: Instrumental Date: Wed, 15 Aug 2018 04:57:04 -0500 Subject: [PATCH] Modify Agent to use Repo Image Issue-ID: AAF-434 Change-Id: I26a62197f77d262d929e542c0fe6963e185053f6 Signed-off-by: Instrumental --- auth/docker/agent.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/auth/docker/agent.sh b/auth/docker/agent.sh index 4aba092c..1ca12eb8 100644 --- a/auth/docker/agent.sh +++ b/auth/docker/agent.sh @@ -9,10 +9,15 @@ fi . ./aaf.props -for V in VERSION AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_FQDN APP_FQI VOLUME DRIVER LATITUDE LONGITUDE; do + +for V in VERSION DOCKER_REPOSITORY AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_FQDN APP_FQI VOLUME DRIVER LATITUDE LONGITUDE; do if [ "$(grep $V ./aaf.props)" = "" ]; then unset DEF case $V in + DOCKER_REPOSITORY) + PROMPT="Docker Repo" + DEF=nexus3.onap.org:10003 + ;; AAF_FQDN) PROMPT="AAF's FQDN";; DEPLOY_FQI) PROMPT="Deployer's FQI";; AAF_FQDN_IP) @@ -66,5 +71,5 @@ docker run \ --env LATITUDE=${LATITUDE} \ --env LONGITUDE=${LONGITUDE} \ --name aaf_agent_$USER \ - onap/aaf/aaf_agent:$VERSION \ + $DOCKER_REPOSITORY/onap/aaf/aaf_agent:$VERSION \ /bin/bash "$@" -- 2.16.6