-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
56 lines (52 loc) · 1.62 KB
/
Copy pathbuild.sbt
File metadata and controls
56 lines (52 loc) · 1.62 KB
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
import sbt._
import Keys._
import NativePackagerHelper._
name := "sweetspot"
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
Project.settings
libraryDependencies ++= Seq(
Dependencies.Akka.Actor,
Dependencies.Akka.Slf4j,
Dependencies.Akka.Stream,
Dependencies.Akka.HttpCore,
Dependencies.Akka.HttpSprayJson,
Dependencies.Akka.HttpXml,
//Dependencies.ScalikeJdbc,
Dependencies.Config,
Dependencies.ScalaScraper,
Dependencies.Logback
)
mainClass in Compile := Some("bitbonanza.sweetspot.Proxy")
maintainer in Docker := "Odd Möller <odd.moller@gmail.com>"
dockerBaseImage := "anapsix/alpine-java"
dockerRepository := Some("oddo")
dockerUpdateLatest := true
daemonUser in Docker := "root"
bashScriptConfigLocation := Some("${app_home}/../resources/application.conf")
mappings in Universal ++= {
directory("scripts") ++
contentOf("src/main/resources").toMap.mapValues("config/" + _)
}
scriptClasspath := Seq("../config/") ++ scriptClasspath.value
/*
stage in Docker ~= { result =>
val src = file("./src/main/resources").getAbsoluteFile
val dst = file("./target/docker/stage/src/main/resources")
IO.copyDirectory(src, dst)
println(s"Copied $src (${src.exists}) to $dst (${dst.exists})")
if (!dst.exists()) {
try {
println(s"Linking $src (${src.exists}) to $dst (${dst.exists})")
dst.getParentFile.mkdirs()
java.nio.file.Files.createSymbolicLink(dst.toPath, src.toPath)
println(s"Linked $src (${src.exists}) into $dst (${dst.exists})")
} catch {
case e: Exception =>
println("### Could not link: " + e.getMessage)
e.printStackTrace()
}
}
result
}
*/