From aac024c140494a3f3769862ab87317dbd153c384 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Tue, 10 Apr 2018 05:33:06 -0400 Subject: [PATCH] Include logback.xml in container Patch set1: increment artifact version Change-Id: I35919f5aa8ad6db4e0c7e7ca728bfb151328aa7d Signed-off-by: dglFromAtt Issue-ID: DMAAP-125 Signed-off-by: dglFromAtt --- Dockerfile | 1 + misc/dmaapbc | 2 +- misc/dmaapbc.properties.tmpl | 2 +- misc/logback.xml | 336 +++++++++++++++++++++++++++++++++++++++++++ pom.xml | 2 +- 5 files changed, 340 insertions(+), 3 deletions(-) create mode 100644 misc/logback.xml diff --git a/Dockerfile b/Dockerfile index cce023e..cea2529 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ COPY target/buscontroller.jar ${insdir}/lib/ # COPY www/ ${insdir}/www/ # COPY target/site/apidocs/ ${insdir}/www/doc/ COPY misc/LocalKey ${insdir}/etc/ +COPY misc/logback.xml ${insdir}/etc/ COPY misc/opensource.env ${insdir}/misc/ COPY misc/*.tmpl ${insdir}/misc/ COPY misc/cert-client-init.sh ${insdir}/misc/ diff --git a/misc/dmaapbc b/misc/dmaapbc index b26952c..c63fcee 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -89,7 +89,7 @@ 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" + FLAGS="-cp etc:lib/* -Dlog4j.configuration=etc/log4j.properties -Ddmaapbc.properties=etc/dmaapbc.properties -Dlogback.configurationFile=etc/logback.xml -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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${defaultPattern} + + + + + + + + + + + + ${logDirectory}/${generalLogName}.log + + ${logDirectory}/${generalLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${defaultPattern} + + + + + 256 + + + + + + ${logDirectory}/${securityLogName}.log + + ${logDirectory}/${securityLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${defaultPattern} + + + + + 256 + 0 + + + + + + ${logDirectory}/${performanceLogName}.log + + ${logDirectory}/${performanceLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${defaultPattern} + + + + 256 + + + + + + ${logDirectory}/${serverLogName}.log + + ${logDirectory}/${serverLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${defaultPattern} + + + + 256 + + + + + + + ${logDirectory}/${policyLogName}.log + + ${logDirectory}/${policyLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${defaultPattern} + + + + 256 + + + + + + + + ${logDirectory}/${auditLogName}.log + + ${logDirectory}/${auditLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${auditLoggerPattern} + + + + 256 + + + + + ${logDirectory}/${metricsLogName}.log + + ${logDirectory}/${metricsLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${metricsLoggerPattern} + + + + + + 256 + + + + + ${logDirectory}/${errorLogName}.log + + ${logDirectory}/${errorLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${errorLoggerPattern} + + + + + 256 + + + + + ${debugLogDirectory}/${debugLogName}.log + + ${debugLogDirectory}/${debugLogName}.%i.log.zip + + 1 + 9 + + + 5MB + + + ${debugLoggerPattern} + + + + + 256 + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 6eab0f8..482bbd0 100644 --- a/pom.xml +++ b/pom.xml @@ -302,7 +302,7 @@ UTF-8 9.3.7.v20160115 0.0.1 - 1.0.3 + 1.0.4 0.7.7.201606060606 3.2 -- 2.16.6