Unverified Commit 19d2c059 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use memobase settings library

parent 29df4dc8
FROM openjdk:8-jre-alpine
ADD src/main/resources/config.properties /app/config/config.properties
ADD target/scala-2.12/app.jar /app/app.jar
CMD java -jar /app/app.jar
\ No newline at end of file
......@@ -15,12 +15,16 @@ lazy val root = (project in file("."))
name := "fedora-media-extractor",
assemblyJarName in assembly := "app.jar",
mainClass in assembly := Some("org.memobase.App"),
resolvers ++= Seq(
"Memobase Utils" at "https://dl.bintray.com/jonas-waeber/memobase"
),
libraryDependencies ++= Seq(
kafkaClients,
log4jApi,
log4jCore,
log4jSlf4j,
log4jScala,
memobaseServiceUtils,
scalatic,
scalaTest % Test)
)
......
......@@ -28,6 +28,7 @@ object Dependencies {
lazy val log4jCore = "org.apache.logging.log4j" % "log4j-core" % log4jV
lazy val log4jScala = "org.apache.logging.log4j" %% "log4j-api-scala" % "11.0"
lazy val log4jSlf4j = "org.apache.logging.log4j" % "log4j-slf4j-impl" % log4jV
lazy val memobaseServiceUtils = "org.memobase" % "memobase-service-utilities" % "1.2.1"
lazy val scalatic = "org.scalactic" %% "scalactic" % scalatestV
lazy val scalaTest = "org.scalatest" %% "scalatest" % scalatestV
}
id: ${JOB_ID:?system}
app:
audioSinkDir: ${}
imageSinkDir: ${}
videoSinkDir: ${}
mediaserverDBHost: ${}
mediaserverDBPort: ${}
mediaserverDBUser: ${}
mediaserverDBPassword: ${}
kafka:
consumer:
bootstrap.servers: ${KAFKA_BOOTSTRAP_SERVERS:?system}
application.id: ${APPLICATION_ID:?system}
topic:
in: ${TOPIC_IN:?system}
#
# Extracts media files from Fedora repository
# Copyright (C) 2020 Memoriav
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
Supports Markdown
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