summaryrefslogtreecommitdiffstats
path: root/auth/docker/agent.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-02-18 10:06:21 -0600
committerInstrumental <jonathan.gathman@att.com>2019-02-18 10:06:27 -0600
commit7f1e2c062e9ddb722e3ec79b432888e9f9dbc81e (patch)
treefcbca6366b1b91d98b4c6420a418169f64b53583 /auth/docker/agent.sh
parent05e268a2061beccd5bceb88a716aeafadb6dcc71 (diff)
Refine Agent.sh and Docs
Issue-ID: AAF-667 Change-Id: Id4cfb8e880001d4d46f664f69449fa1713f777e7 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/agent.sh')
-rw-r--r--auth/docker/agent.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/auth/docker/agent.sh b/auth/docker/agent.sh
index a2b11830..c330b1ce 100644
--- a/auth/docker/agent.sh
+++ b/auth/docker/agent.sh
@@ -36,7 +36,7 @@ for V in VERSION DOCKER_REPOSITORY HOSTNAME AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_
case $V in
DOCKER_REPOSITORY)
PROMPT="Docker Repo"
- DEF=""
+ DEF="nexus3.onap.org:10003"
;;
HOSTNAME)
PROMPT="HOSTNAME (blank for Default)"
@@ -47,7 +47,12 @@ for V in VERSION DOCKER_REPOSITORY HOSTNAME AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_
AAF_FQDN_IP)
# Need AAF_FQDN's IP, because not might not be available in mini-container
PROMPT="AAF FQDN IP"
- DEF=$(host $AAF_FQDN | grep "has address" | tail -1 | cut -f 4 -d ' ')
+ LOOKUP=$(host "${AAF_FQDN}" | grep "has address")
+ if [ -z ${LOOKUP} ]; then
+ DEF=
+ else
+ DEF=$(echo ${LOOKUP} | tail -1 | cut -f 4 -d ' ')
+ fi
;;
APP_FQI) PROMPT="App's FQI";;
APP_FQDN) PROMPT="App's Root FQDN";;
@@ -74,6 +79,7 @@ for V in VERSION DOCKER_REPOSITORY HOSTNAME AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_
fi
fi
echo "$V=$VAR" >> ./aaf.props
+ declare "$V"="$VAR"
fi
done
. ./aaf.props
@@ -91,7 +97,6 @@ else
fi
function run_it() {
- LINKS="--link aaf-locate"
if [ -n "${DUSER}" ]; then
USER_LINE="--user ${DUSER}"
fi
@@ -99,7 +104,6 @@ function run_it() {
${USER_LINE} \
-v "${VOLUME}:/opt/app/osaaf" \
--add-host="$AAF_FQDN:$AAF_FQDN_IP" \
- $LINKS \
--env AAF_FQDN=${AAF_FQDN} \
--env DEPLOY_FQI=${DEPLOY_FQI} \
--env DEPLOY_PASSWORD=${DEPLOY_PASSWORD} \
@@ -118,6 +122,9 @@ case "$1" in
PARAMS="&& cd /opt/app/osaaf/local && exec bash"
run_it -it --rm
;;
+ taillog)
+ run_it -it --rm
+ ;;
*)
run_it --rm
;;