summaryrefslogtreecommitdiffstats
path: root/auth/auth-service/src/main/resources/docker-compose/startupaaf.sh
diff options
context:
space:
mode:
authorSai Gandham <sg481n@att.com>2018-03-27 20:33:30 +0000
committerSai Gandham <sg481n@att.com>2018-03-27 20:33:37 +0000
commit649335a398f1d0fd7e7d42062c6618c99517ef5d (patch)
tree7598a19d4fe0defdb63f7b029b98845b33c7d29a /auth/auth-service/src/main/resources/docker-compose/startupaaf.sh
parent20c4a4ad243780161e9f9017ca1a871812da4e89 (diff)
Add deploy plugin to cadi shiro,oauth
Also add docker-compose file for csit jobs. Issue-ID: AAF-199 Change-Id: I454eb1d602677126283502658c356ff4411dcb6e Signed-off-by: Sai Gandham <sg481n@att.com>
Diffstat (limited to 'auth/auth-service/src/main/resources/docker-compose/startupaaf.sh')
-rw-r--r--auth/auth-service/src/main/resources/docker-compose/startupaaf.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/auth/auth-service/src/main/resources/docker-compose/startupaaf.sh b/auth/auth-service/src/main/resources/docker-compose/startupaaf.sh
new file mode 100644
index 00000000..b45bba5e
--- /dev/null
+++ b/auth/auth-service/src/main/resources/docker-compose/startupaaf.sh
@@ -0,0 +1,34 @@
+# lji: this startup file shadows the existing extry point startup.sh file of the container
+# because we need to pass in the cassandra cluster location
+
+LIB=/opt/app/aaf/authz-service/lib
+
+ETC=/opt/app/aaf/authz-service/etc
+DME2REG=/opt/dme2reg
+
+echo "this is LIB" $LIB
+echo "this is ETC" $ETC
+echo "this is DME2REG" $DME2REG
+
+CLASSPATH=$ETC
+for FILE in `find $LIB -name *.jar`; do
+ CLASSPATH=$CLASSPATH:$FILE
+done
+
+FILEPATHS="/opt/app/aaf/authz-service/etc/com.osaaf.common.props /opt/app/aaf/authz-service/etc/com.osaaf.common.props"
+for FILEPATH in $FILEPATHS:
+do
+ if [ -e ${FILEPATH} ]; then
+ if [ -z `grep "cassandra.clusters=$CASSANDRA_CLUSTER" $FILEPATH` ]; then
+ echo "cassandra.clusters=$CASSANDRA_CLUSTER" >> $FILEPATH;
+ fi
+ fi
+done
+
+
+java -classpath $CLASSPATH -DDME2_EP_REGISTRY_CLASS=DME2FS -DAFT_DME2_EP_REGISTRY_FS_DIR=$DME2REG org.onap.aaf.authz.service.AuthAPI
+
+# keet it running so we can check fs
+while sleep 2; do echo thinking; done
+
+