From 365638c2c53d3b790b6914fe3e06b58cec3b2963 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Mon, 1 Oct 2018 15:26:03 -0500 Subject: Adjust Client Container Change Client Container to reflect changes in regular Containers. Issue-ID: AAF-517 Change-Id: I26a6e657b2a626a2a5cd7c22fff5217b6fb8ed71 Signed-off-by: Instrumental --- auth/docker/agent.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'auth/docker/agent.sh') diff --git a/auth/docker/agent.sh b/auth/docker/agent.sh index 1ca12eb8..38b1070d 100644 --- a/auth/docker/agent.sh +++ b/auth/docker/agent.sh @@ -16,7 +16,7 @@ for V in VERSION DOCKER_REPOSITORY AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_FQDN APP_ case $V in DOCKER_REPOSITORY) PROMPT="Docker Repo" - DEF=nexus3.onap.org:10003 + DEF="" ;; AAF_FQDN) PROMPT="AAF's FQDN";; DEPLOY_FQI) PROMPT="Deployer's FQI";; @@ -58,6 +58,12 @@ if [ "$(docker volume ls | grep ${VOLUME})" = "" ]; then docker volume create -d ${DRIVER} ${VOLUME} fi +if [ -n "$DOCKER_REPOSITORY" ]; then + PREFIX="$DOCKER_REPOSITORY/" +else + PREFIX="" +fi + docker run \ -it \ --rm \ @@ -71,5 +77,5 @@ docker run \ --env LATITUDE=${LATITUDE} \ --env LONGITUDE=${LONGITUDE} \ --name aaf_agent_$USER \ - $DOCKER_REPOSITORY/onap/aaf/aaf_agent:$VERSION \ + "$PREFIX"onap/aaf/aaf_agent:$VERSION \ /bin/bash "$@" -- cgit 1.2.3-korg