From 24e3448b4673674e2fbd4e55603b1b67ac052182 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Wed, 21 Mar 2018 08:28:10 -0400 Subject: [PATCH] Modify for k8s deployment compatibility There was a problem with signature using shade. Also simplified start script for k8s Change-Id: I8c3cda5d20a0db9840301168baea3c4b6606c9c4 Signed-off-by: dglFromAtt Issue-ID: DMAAP-117 --- README.md | 2 +- misc/dmaapbc | 27 +++++++++++---------------- misc/dmaapbc.properties.tmpl | 6 +++--- pom.xml | 20 +++++++++++++++++--- 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index bd4cfd3..3bc4fb4 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Note the Dockerfile follows ONAP convention of running app as root. -$ mvn docker:build +$ mvn -P docker docker:build ``` diff --git a/misc/dmaapbc b/misc/dmaapbc index 19bb3f7..6b337db 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -15,9 +15,9 @@ MAIN=org.onap.dmaap.dbcapi.server.Main pids() { - #set -x + set -x ps -ef | grep java | grep $MAIN | sed -e 's/[^ ]* *//' -e 's/ .*//' - #set +x + set +x } config() { @@ -81,22 +81,10 @@ start() { # JVM flags #old line from Dockerfile...keep for reference only FLAGS="-cp etc:lib/* -Dlog4j.configuration=etc/log4j.properties -Ddmaapbc.properties=etc/dmaapbc.properties -Dhttps.protocols=TLSv1.2 -Dhttps.cipherSuites=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" - nohup java $FLAGS $MAIN /dev/null 2>&1 & + #nohup java $FLAGS $MAIN /dev/null 2>&1 & + nohup java $FLAGS $MAIN 4.0.0 org.onap.dmaap.buscontroller buscontroller - 1.0.1 + ${artifact.version} dmaap-buscontroller org.onap.oparent @@ -53,6 +53,20 @@ shade + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + 0.7.7.201606060606 3.2 -- 2.16.6