Commit 9d840493 authored by Jonas Waeber's avatar Jonas Waeber

Change base image for deployment

parent 3e7b8ba6
Pipeline #15835 passed with stages
in 6 minutes and 56 seconds
......@@ -4,6 +4,6 @@ WORKDIR /
RUN gradle --no-daemon --no-scan --no-build-cache distTar
RUN cd /build/distributions && tar xf app.tar
FROM openjdk:8-jre-alpine
FROM openjdk:8-jre
COPY --from=0 /build/distributions/app /app
CMD /app/bin/xml-data-transform
......@@ -21,6 +21,7 @@ package org.memobase
import org.apache.kafka.streams.KafkaStreams
import org.apache.logging.log4j.LogManager
import org.memobase.settings.SettingsLoader
import kotlin.system.exitProcess
class Service(file: String = "app.yml") {
private val log = LogManager.getLogger("TableDataService")
......@@ -42,6 +43,7 @@ class Service(file: String = "app.yml") {
log.info("Service is running.")
Thread.sleep(10_000L)
}
throw Exception("Stream stopped running!")
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment