summaryrefslogtreecommitdiffstats
path: root/auth/docker
diff options
context:
space:
mode:
authorSai Gandham <gandham.saiprasad@gmail.com>2020-04-25 21:29:29 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-25 21:29:29 +0000
commitd7c1a1b6c4218e3f470f86e4ff67fdcdc86f0ea5 (patch)
treedeb33803d25e4a5d11aa7e42131d3490b08dc6ba /auth/docker
parente4220946ef3feb864ed45e4fc14682be2016dc1b (diff)
parent475da40b0d58acdf4dd1a3590c490ce7b95a1af8 (diff)
Merge "Add StandAlone Unix Configurations Include scripts, podman starts, minor code changes."
Diffstat (limited to 'auth/docker')
-rw-r--r--auth/docker/.gitignore1
-rw-r--r--auth/docker/aaf.sh15
-rw-r--r--auth/docker/podman_create.sh5
3 files changed, 18 insertions, 3 deletions
diff --git a/auth/docker/.gitignore b/auth/docker/.gitignore
index f3a8bcb9..ed908238 100644
--- a/auth/docker/.gitignore
+++ b/auth/docker/.gitignore
@@ -16,3 +16,4 @@
/sdnc
/working
/target
+/ldrun.sh
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
diff --git a/auth/docker/podman_create.sh b/auth/docker/podman_create.sh
new file mode 100644
index 00000000..ad164e91
--- /dev/null
+++ b/auth/docker/podman_create.sh
@@ -0,0 +1,5 @@
+podman pod create --name "aaf.gathsys.com" --publish 9042,8100
+
+#--publish 8095:8095 --publish 8140:8140 --publish 8150:8150 --publish 8200:8200 --publish 8130:8130 --publish 9042:9042
+
+# --publish 80:8096