diff options
author | dglFromAtt <dgl@research.att.com> | 2018-08-30 18:09:54 +0000 |
---|---|---|
committer | dglFromAtt <dgl@research.att.com> | 2018-08-30 18:10:03 +0000 |
commit | 946886739898c79de15f50eee933a7ef0f5b7861 (patch) | |
tree | 0f5af843c3c056ae2a673180abf48d98623f4b21 | |
parent | 637ab9c16fe84a4d3b60c7b6abade56c0a9c0c75 (diff) |
Simple initialization calls at deploy
Change-Id: I7c1afbaad729280b79598d0c17244806e87619cc
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-548
-rw-r--r-- | misc/dmaapbc | 25 | ||||
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | version.properties | 2 |
3 files changed, 26 insertions, 3 deletions
diff --git a/misc/dmaapbc b/misc/dmaapbc index c65a74b..b473598 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -31,7 +31,8 @@ PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/jdk/ export PATH CLASSPATH=`echo $APP_ROOT/etc $APP_ROOT/lib/*.jar | tr ' ' ':'` export CLASSPATH -CONTAINER_CONFIG=/opt/app/config/conf +CONFIGMAP_ROOT=/opt/app/config +CONTAINER_CONFIG=$CONFIGMAP_ROOT/conf MAIN=org.onap.dmaap.dbcapi.server.Main @@ -155,11 +156,33 @@ status() { fi } +init() { + if [ ! -d $CONFIGMAP_ROOT ] + then + echo $CONFIGMAP_ROOT does not exist + return + fi + + cd $CONFIGMAP_ROOT + # order is important in this next list + for uri in dmaap dcaeLocations mr_clusters topics feeds + do + if [ -d ${uri} ] + then + for j in `ls ${uri}/*.json` + do + curl -v -X POST -H "Content-Type: application/json" -d @${j} http://dmaap-bc:8080/webapi/${uri} + done + fi + done +} + set -x case "$1" in 'deploy') config start + init wait ;; 'start') @@ -336,7 +336,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <jettyVersion>9.3.7.v20160115</jettyVersion> <eelf.version>0.0.1</eelf.version> - <artifact.version>1.0.16</artifact.version> + <artifact.version>1.0.17</artifact.version> <!-- SONAR --> <jacoco.version>0.7.7.201606060606</jacoco.version> <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> diff --git a/version.properties b/version.properties index 8684d44..abf826c 100644 --- a/version.properties +++ b/version.properties @@ -27,7 +27,7 @@ major=1 minor=0 -patch=16 +patch=17 base_version=${major}.${minor}.${patch} # Release must be completed with git revision # in Jenkins |