Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
XML Data Transform
Commits
9d840493
Commit
9d840493
authored
Oct 20, 2020
by
Jonas Waeber
Browse files
Change base image for deployment
parent
3e7b8ba6
Pipeline
#15835
passed with stages
in 6 minutes and 56 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
9d840493
...
@@ -4,6 +4,6 @@ WORKDIR /
...
@@ -4,6 +4,6 @@ WORKDIR /
RUN
gradle
--no-daemon
--no-scan
--no-build-cache
distTar
RUN
gradle
--no-daemon
--no-scan
--no-build-cache
distTar
RUN
cd
/build/distributions
&&
tar
xf app.tar
RUN
cd
/build/distributions
&&
tar
xf app.tar
FROM
openjdk:8-jre
-alpine
FROM
openjdk:8-jre
COPY
--from=0 /build/distributions/app /app
COPY
--from=0 /build/distributions/app /app
CMD
/app/bin/xml-data-transform
CMD
/app/bin/xml-data-transform
src/main/kotlin/Service.kt
View file @
9d840493
...
@@ -21,6 +21,7 @@ package org.memobase
...
@@ -21,6 +21,7 @@ package org.memobase
import
org.apache.kafka.streams.KafkaStreams
import
org.apache.kafka.streams.KafkaStreams
import
org.apache.logging.log4j.LogManager
import
org.apache.logging.log4j.LogManager
import
org.memobase.settings.SettingsLoader
import
org.memobase.settings.SettingsLoader
import
kotlin.system.exitProcess
class
Service
(
file
:
String
=
"app.yml"
)
{
class
Service
(
file
:
String
=
"app.yml"
)
{
private
val
log
=
LogManager
.
getLogger
(
"TableDataService"
)
private
val
log
=
LogManager
.
getLogger
(
"TableDataService"
)
...
@@ -42,6 +43,7 @@ class Service(file: String = "app.yml") {
...
@@ -42,6 +43,7 @@ class Service(file: String = "app.yml") {
log
.
info
(
"Service is running."
)
log
.
info
(
"Service is running."
)
Thread
.
sleep
(
10_000L
)
Thread
.
sleep
(
10_000L
)
}
}
throw
Exception
(
"Stream stopped running!"
)
}
}
}
}
}
}
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