Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Reports Processing
Commits
1836105e
Commit
1836105e
authored
Apr 15, 2021
by
Jonas Waeber
Browse files
Update dependencies & configs
parent
fb2a0fa1
Pipeline
#24791
passed with stages
in 3 minutes and 32 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
1836105e
...
...
@@ -19,28 +19,27 @@ sourceCompatibility = 1.8
targetCompatibility
=
1.8
repositories
{
jcenter
()
mavenCentral
()
maven
{
url
"https://
dl.bintray.com/memoriav/memobase
"
url
"https://
gitlab.switch.ch/api/v4/projects/1324/packages/maven
"
}
}
ext
{
kafkaV
=
'2.
3.1
'
kafkaV
=
'2.
7.0
'
log4jV
=
'2.11.2'
}
dependencies
{
implementation
'org.memobase:memobase-service-utilities:
2
.0.
3
'
implementation
'org.memobase:memobase-service-utilities:
3
.0.
1
'
// Logging Framework
implementation
"org.apache.logging.log4j:log4j-api:${log4jV}"
implementation
"org.apache.logging.log4j:log4j-core:${log4jV}"
// Kafka Imports
//implementation group: 'org.apache.kafka', name: 'kafka-clients', version: kafkaV
implementation
"org.apache.kafka:kafka-streams:${kafkaV}"
// JSON Parser
implementation
'com.beust:klaxon:5.
2
'
implementation
'com.beust:klaxon:5.
5
'
implementation
'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation
"org.jetbrains.kotlin:kotlin-script-runtime:1.3.71"
...
...
helm-charts/helm-values/di-reports-processor-prod.yml
0 → 100644
View file @
1836105e
kafkaConfigs
:
prod-kafka-bootstrap-servers
deploymentName
:
di-reports-processor-prod
applicationId
:
di-reports-processor-prod-app
inputTopicName
:
mb-di-reports-prod
outputTopicName
:
mb-di-processed-reporting-prod
reportingTopicName
:
none
env
:
prod
\ No newline at end of file
helm-charts/helm-values/di-reports-processor-stage.yml
0 → 100644
View file @
1836105e
kafkaConfigs
:
prod-kafka-bootstrap-servers
deploymentName
:
di-reports-processor-stage
applicationId
:
di-reports-processor-stage-app
inputTopicName
:
mb-di-reports-stage
outputTopicName
:
mb-di-processed-reporting-stage
reportingTopicName
:
none
env
:
stage
\ No newline at end of file
helm-charts/helm-values/di-reports-processor-test.yml
0 → 100644
View file @
1836105e
kafkaConfigs
:
test-kafka-bootstrap-servers
deploymentName
:
di-reports-processor-test
applicationId
:
di-reports-processor-test-app
inputTopicName
:
mb-di-reports-test
outputTopicName
:
mb-di-processed-reporting-test
reportingTopicName
:
none
env
:
test
\ No newline at end of file
helm-charts/helm-values/ip-reports-processor.yaml
deleted
100644 → 0
View file @
fb2a0fa1
kafkaConfigs
:
prod-kafka-bootstrap-servers
deploymentName
:
ip-reports-processor
applicationId
:
ip-reports-processor
inputTopicName
:
import-process-reporting
outputTopicName
:
import-process-processed-reporting
reportingTopicName
:
none
\ No newline at end of file
helm-charts/helm-values/pp-reports-processor.yaml
deleted
100644 → 0
View file @
fb2a0fa1
kafkaConfigs
:
prod-kafka-bootstrap-servers
deploymentName
:
pp-reports-processor
applicationId
:
pp-reports-processor
inputTopicName
:
postprocessing-reporting
outputTopicName
:
postprocessing-processed-reporting
reportingTopicName
:
none
helm-charts/templates/deployment.yaml
View file @
1836105e
...
...
@@ -15,7 +15,7 @@ spec:
metadata
:
labels
:
app
:
{{
.Values.deploymentName
}}
tier
:
import-process
environment
:
{{
.Values.env
}}
spec
:
restartPolicy
:
Always
containers
:
...
...
helm-charts/values.yaml
View file @
1836105e
...
...
@@ -7,4 +7,6 @@ deploymentName: ip-reports-processor
applicationId
:
ip-reports-processor
inputTopicName
:
import-process-reporting
outputTopicName
:
import-process-processed-reporting
reportingTopicName
:
none
\ No newline at end of file
reportingTopicName
:
none
env
:
placeholder
\ No newline at end of file
src/main/kotlin/Service.kt
View file @
1836105e
...
...
@@ -32,7 +32,7 @@ class Service(file: String = "app.yml") {
val
stream
=
KafkaStreams
(
KafkaTopology
(
settings
).
prepare
().
build
(),
settings
.
kafkaStreamsSettings
)
stream
.
use
{
it
.
start
()
while
(
stream
.
state
().
isRunning
)
{
while
(
stream
.
state
().
isRunning
OrRebalancing
)
{
log
.
info
(
"Service is running."
)
Thread
.
sleep
(
10_000L
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment