summaryrefslogtreecommitdiffstats
path: root/auth/docker
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-08-15 04:57:04 -0500
committerInstrumental <jonathan.gathman@att.com>2018-08-15 04:59:52 -0500
commitca323313781c200570c56cb17e07174373af6d7a (patch)
tree0a708ca57d1c0f91c802937d5a84bfd80e343a12 /auth/docker
parent7a239e7ddb0662e95db9b7624a77c8cacc43122c (diff)
Modify Agent to use Repo Image
Issue-ID: AAF-434 Change-Id: I26a62197f77d262d929e542c0fe6963e185053f6 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker')
-rw-r--r--auth/docker/agent.sh9
1 files 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 "$@"