This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
58 lines (46 loc) · 2.25 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import com.typesafe.sbt.packager.docker._
organization := "lightbend"
name := "akka-customer"
version := "0.0.1"
scalaVersion := "2.12.2"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-persistence-cassandra" % "0.56" exclude("com.google.guava", "guava"),
"org.projectlombok" % "lombok" % "1.16.10" % "compile",
"com.typesafe.akka" %% "akka-cluster" % "2.5.6",
"com.typesafe.akka" %% "akka-cluster-tools" % "2.5.6",
"com.typesafe.akka" %% "akka-cluster-sharding" % "2.5.6",
"com.typesafe.akka" %% "akka-cluster-metrics" % "2.5.6",
"com.typesafe.akka" %% "akka-http" % "10.0.10",
"com.typesafe.akka" %% "akka-http-jackson" % "10.0.10",
"com.google.guava" % "guava" % "23.0",
"com.github.romix.akka" %% "akka-kryo-serialization" % "0.5.1",
"junit" % "junit" % "4.12" % "test",
"com.typesafe.akka" %% "akka-testkit" % "2.5.6" % "test",
"com.typesafe.akka" %% "akka-http-testkit" % "10.0.10" % "test",
"com.typesafe.akka" %% "akka-persistence-cassandra-launcher" % "0.58" % "test"
)
licenses := Seq(("CC0", url("http://creativecommons.org/publicdomain/zero/1.0")))
resolvers += "krasserm at bintray" at "http://dl.bintray.com/krasserm/maven"
enablePlugins(JavaAppPackaging)
dockerEntrypoint ++= Seq(
"""-Dcassandra-journal.contact-points.0="$CASSANDRA_SERVICE_NAME"""",
"""-Dhttp.address="$CUSTOMERSERVICE_BIND_IP"""",
"""-Dhttp.port="$CUSTOMERSERVICE_BIND_PORT"""",
"""-Dakka.actor.provider=cluster""",
"""-Dakka.remote.netty.tcp.hostname="$(eval "echo $AKKA_REMOTING_BIND_HOST")"""",
"""-Dakka.remote.netty.tcp.port="$AKKA_REMOTING_BIND_PORT"""",
"""$(IFS=','; I=0; for NODE in $AKKA_SEED_NODES; do echo "-Dakka.cluster.seed-nodes.$I=akka.tcp://$AKKA_ACTOR_SYSTEM_NAME@$NODE"; I=$(expr $I + 1); done)""",
"-Dakka.io.dns.resolver=async-dns",
"-Dakka.io.dns.async-dns.resolve-srv=true",
"-Dakka.io.dns.async-dns.resolv-conf=on "
)
dockerCommands :=
dockerCommands.value.flatMap {
case ExecCmd("ENTRYPOINT", args @ _*) => Seq(Cmd("ENTRYPOINT", args.mkString(" ")))
case v => Seq(v)
}
dockerRepository := Some("lightbend")
dockerExposedPorts := Seq(9000, 2551)
maintainer := "Eric Murphy <eric.murphy@lightbend.com>"
// dockerBaseImage := "openjdk:8-jre-alpine" // TODO: Bash not installed Alpine
dockerUpdateLatest := true