summaryrefslogtreecommitdiffstats
path: root/auth/docker/aaf.sh
diff options
context:
space:
mode:
authorJonathan Gathman <jgonap@stl.gathman.org>2020-04-25 14:28:13 -0500
committerInstrumental <jgonap@stl.gathman.org>2020-04-25 15:40:38 -0500
commit475da40b0d58acdf4dd1a3590c490ce7b95a1af8 (patch)
tree6ada2fd4e98522c4e942121f1c20f22343e450d3 /auth/docker/aaf.sh
parent861b557b294032f9443ee1fca6b42d7252e92481 (diff)
Add StandAlone Unix Configurations
Include scripts, podman starts, minor code changes. Issue-ID: AAF-1137 Signed-off-by: Jonathan Gathman <jgonap@stl.gathman.org> Change-Id: Ief72d93e607dbe62875f592978ee15084c8310d2
Diffstat (limited to 'auth/docker/aaf.sh')
-rw-r--r--auth/docker/aaf.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh
index b498428b..d0393d0a 100644
--- a/auth/docker/aaf.sh
+++ b/auth/docker/aaf.sh
@@ -21,9 +21,18 @@
. ./d.props
-DOCKER=${DOCKER:=docker}
-# if something, may not want CASS attached all the tim
-#LINKS="--link $CASSANDRA_DOCKER"
+DOCKER=${DOCKER:-docker}
+if [ "$DOCKER" = "podman" ]; then
+ PODNAME=${PODNAME:-$HOSTNAME}
+ if $(podman pod exists $PODNAME); then
+ echo "Using existing 'podman' pod $PODNAME"
+ LINKS="--pod $PODNAME "
+ #else
+ #echo "Create new 'podman' pod $PODNAME"
+ #podman pod create --infra=true -n $PODNAME --publish 8100:8100
+ fi
+ LINKS="--pod $PODNAME "
+fi
# DOCKER doesn't have DNS out of the box, only links.
# so we add cm_always_ignore_ips in --env