generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #586 from bcgov/fix/task-164
Fix/task 164
- Loading branch information
Showing
8 changed files
with
269 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
FROM debezium/kafka:1.9 | ||
|
||
|
||
COPY connect-log4j.properties /kafka/config/ | ||
COPY log4j.properties /kafka/config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
kafka.logs.dir=logs | ||
|
||
log4j.rootLogger=ERROR, stdout | ||
|
||
# Disable excessive reflection warnings - KAFKA-5229 | ||
log4j.logger.org.reflections=ERROR | ||
|
||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.threshold=ERROR | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.kafkaAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.kafkaAppender.File=${kafka.logs.dir}/server.log | ||
log4j.appender.kafkaAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.kafkaAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.stateChangeAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.stateChangeAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.stateChangeAppender.File=${kafka.logs.dir}/state-change.log | ||
log4j.appender.stateChangeAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stateChangeAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.requestAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.requestAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.requestAppender.File=${kafka.logs.dir}/kafka-request.log | ||
log4j.appender.requestAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.requestAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.cleanerAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.cleanerAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.cleanerAppender.File=${kafka.logs.dir}/log-cleaner.log | ||
log4j.appender.cleanerAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.cleanerAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.controllerAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.controllerAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.controllerAppender.File=${kafka.logs.dir}/controller.log | ||
log4j.appender.controllerAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.controllerAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
# Turn on all our debugging info | ||
#log4j.logger.kafka.producer.async.DefaultEventHandler=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.client.ClientUtils=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.perf=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.perf.ProducerPerformance$ProducerThread=DEBUG, kafkaAppender | ||
#log4j.logger.org.I0Itec.zkclient.ZkClient=DEBUG | ||
log4j.logger.kafka=ERROR, kafkaAppender | ||
|
||
log4j.logger.kafka.network.RequestChannel$=ERROR, requestAppender | ||
log4j.additivity.kafka.network.RequestChannel$=false | ||
|
||
#log4j.logger.kafka.network.Processor=TRACE, requestAppender | ||
#log4j.logger.kafka.server.KafkaApis=TRACE, requestAppender | ||
#log4j.additivity.kafka.server.KafkaApis=false | ||
log4j.logger.kafka.request.logger=ERROR, requestAppender | ||
log4j.additivity.kafka.request.logger=false | ||
|
||
log4j.logger.kafka.controller=ERROR, controllerAppender | ||
log4j.additivity.kafka.controller=false | ||
|
||
log4j.logger.kafka.log.LogCleaner=ERROR, cleanerAppender | ||
log4j.additivity.kafka.log.LogCleaner=false | ||
|
||
log4j.logger.state.change.logger=ERROR, stateChangeAppender | ||
log4j.additivity.state.change.logger=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
kafka.logs.dir=logs | ||
|
||
log4j.rootLogger=ERROR, stdout | ||
|
||
# Disable excessive reflection warnings - KAFKA-5229 | ||
log4j.logger.org.reflections=ERROR | ||
|
||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.threshold=ERROR | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.kafkaAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.kafkaAppender.File=${kafka.logs.dir}/server.log | ||
log4j.appender.kafkaAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.kafkaAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.stateChangeAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.stateChangeAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.stateChangeAppender.File=${kafka.logs.dir}/state-change.log | ||
log4j.appender.stateChangeAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stateChangeAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.requestAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.requestAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.requestAppender.File=${kafka.logs.dir}/kafka-request.log | ||
log4j.appender.requestAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.requestAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.cleanerAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.cleanerAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.cleanerAppender.File=${kafka.logs.dir}/log-cleaner.log | ||
log4j.appender.cleanerAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.cleanerAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
log4j.appender.controllerAppender=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.controllerAppender.DatePattern='.'yyyy-MM-dd-HH | ||
log4j.appender.controllerAppender.File=${kafka.logs.dir}/controller.log | ||
log4j.appender.controllerAppender.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.controllerAppender.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n | ||
|
||
# Turn on all our debugging info | ||
#log4j.logger.kafka.producer.async.DefaultEventHandler=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.client.ClientUtils=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.perf=DEBUG, kafkaAppender | ||
#log4j.logger.kafka.perf.ProducerPerformance$ProducerThread=DEBUG, kafkaAppender | ||
#log4j.logger.org.I0Itec.zkclient.ZkClient=DEBUG | ||
log4j.logger.kafka=ERROR, kafkaAppender | ||
|
||
log4j.logger.kafka.network.RequestChannel$=ERROR, requestAppender | ||
log4j.additivity.kafka.network.RequestChannel$=false | ||
|
||
#log4j.logger.kafka.network.Processor=TRACE, requestAppender | ||
#log4j.logger.kafka.server.KafkaApis=TRACE, requestAppender | ||
#log4j.additivity.kafka.server.KafkaApis=false | ||
log4j.logger.kafka.request.logger=ERROR, requestAppender | ||
log4j.additivity.kafka.request.logger=false | ||
|
||
log4j.logger.kafka.controller=ERROR, controllerAppender | ||
log4j.additivity.kafka.controller=false | ||
|
||
log4j.logger.kafka.log.LogCleaner=ERROR, cleanerAppender | ||
log4j.additivity.kafka.log.LogCleaner=false | ||
|
||
log4j.logger.state.change.logger=ERROR, stateChangeAppender | ||
log4j.additivity.state.change.logger=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
kind: Template | ||
apiVersion: template.openshift.io/v1 | ||
metadata: | ||
name: "${API_NAME}-build-template" | ||
creationTimestamp: | ||
objects: | ||
- kind: ImageStream | ||
apiVersion: v1 | ||
metadata: | ||
name: "${API_NAME}" | ||
- kind: BuildConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: "${API_NAME}-build" | ||
labels: | ||
app: "${API_NAME}-build" | ||
spec: | ||
runPolicy: Serial | ||
source: | ||
type: Git | ||
git: | ||
uri: "${GIT_REPO_URL}" | ||
ref: "${GIT_REF}" | ||
contextDir: "${SOURCE_CONTEXT_DIR}" | ||
strategy: | ||
type: Docker | ||
dockerStrategy: | ||
dockerfilePath: "${DOCKER_FILE_PATH}" | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: "${API_NAME}:latest" | ||
parameters: | ||
- name: API_NAME | ||
displayName: Name | ||
description: The name assigned to all of the resources defined in this template. | ||
required: true | ||
value: debezium-kafka | ||
- name: GIT_REPO_URL | ||
displayName: Git Repo URL | ||
description: The URL to your GIT repo. | ||
required: true | ||
value: https://github.com/bcgov/nr-epd-digital-services | ||
- name: GIT_REF | ||
displayName: Git Reference | ||
description: The git reference or branch. | ||
required: true | ||
value: dev | ||
- name: SOURCE_CONTEXT_DIR | ||
displayName: Source Context Directory | ||
description: The source context directory. | ||
required: false | ||
value: etl/debezium-kafka | ||
- name: DOCKER_FILE_PATH | ||
displayName: Docker File Path | ||
description: The path to the docker file defining the build. | ||
required: false | ||
value: "Dockerfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters