forked from socialmetrix/kafka-transform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
41 lines (32 loc) · 1.36 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name := "kafka-transform"
version := "0.1.4"
scalaVersion := "2.12.6"
scalacOptions := Seq("-deprecation", "-feature")
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.google.inject" % "guice" % "4.2.0",
"org.apache.kafka" % "kafka-clients" % "1.1.0",
"org.apache.kafka" % "kafka-streams" % "1.1.0",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.6",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.6",
"com.typesafe" % "config" % "1.3.3",
"com.typesafe.play" %% "play-ahc-ws-standalone" % "1.1.9",
"com.github.ben-manes.caffeine" % "caffeine" % "2.6.2",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"org.apache.lucene" % "lucene-memory" % "7.4.0",
"org.apache.lucene" % "lucene-queries" % "7.4.0",
"org.apache.lucene" % "lucene-queryparser" % "7.4.0",
"org.apache.lucene" % "lucene-analyzers-common" % "7.4.0",
"org.scalatest" %% "scalatest" % "3.0.5" % Test
)
enablePlugins(JavaAppPackaging)
dockerRepository := Some("socialmetrix")
dockerUpdateLatest := true
import com.typesafe.sbt.packager.docker._
dockerCommands := Seq(
Cmd("FROM", "openjdk:8u151-jre-alpine3.7"),
Cmd("WORKDIR", "/opt/docker"),
Cmd("USER", "daemon"),
ExecCmd("ENTRYPOINT", "java", "-Xms64m", "-Xmx256m", "-cp", "lib/*", "com.socialmetrix.Main"),
Cmd("ADD", "--chown=daemon:daemon opt /opt")
)