summaryrefslogtreecommitdiffstats
path: root/auth/docker/aaf.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-08 11:27:18 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-08 11:28:00 -0500
commit94053613671f7456ea5114a8421d0e6868bdbba0 (patch)
treef81e1585e9b9e76dd74a0c8381926ed7b1c6e8be /auth/docker/aaf.sh
parent49525303bc07064d60b3dde3056b2e9e8a379435 (diff)
Artifacts to Bootstrap
Issue-ID: AAF-543 Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/aaf.sh')
-rw-r--r--auth/docker/aaf.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh
index 5757051f..7301c50e 100644
--- a/auth/docker/aaf.sh
+++ b/auth/docker/aaf.sh
@@ -4,9 +4,10 @@ if [ -e ./cass.props ]; then
. ./cass.props
fi
+DOCKER=${DOCKER:=docker}
function run_it() {
- docker run $@ \
- --mount 'type=volume,src=aaf_config,dst='$CONF_ROOT_DIR',volume-driver=local' \
+ $DOCKER run $@ \
+ -v "aaf_config:$CONF_ROOT_DIR" \
--add-host="$HOSTNAME:$HOST_IP" \
--add-host="aaf.osaaf.org:$HOST_IP" \
--env HOSTNAME=${HOSTNAME} \
@@ -25,15 +26,15 @@ function run_it() {
}
function set_prop() {
-docker exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP setProp "$1" "$2" "$3"
+ $DOCKER exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP setProp "$1" "$2" "$3"
}
function encrypt_it() {
- docker exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP encrypt "$1" "$2"
+ $DOCKER exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP encrypt "$1" "$2"
}
function set_it() {
- docker exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP setProp "$1" "$2"
+ $DOCKER exec -t aaf_config_$USER /bin/bash /opt/app/aaf_config/bin/agent.sh NOOP setProp "$1" "$2"
}
PARAMS="$@"