-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDB Loader: build Docker image (close #247)
- Loading branch information
Showing
5 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,12 @@ import Keys._ | |
import sbtassembly._ | ||
import sbtassembly.AssemblyKeys._ | ||
|
||
// sbt-native-packager | ||
import com.typesafe.sbt.packager.Keys.{daemonUser, maintainer} | ||
import com.typesafe.sbt.packager.linux.LinuxPlugin.autoImport._ | ||
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport._ | ||
import com.typesafe.sbt.packager.docker.DockerVersion | ||
|
||
import scoverage.ScoverageKeys._ | ||
|
||
// DynamoDB Local | ||
|
@@ -42,11 +48,6 @@ object BuildSettings { | |
"-encoding", "UTF-8" | ||
), | ||
|
||
javacOptions := Seq( | ||
"-source", "1.8", | ||
"-target", "1.8" | ||
), | ||
|
||
addCompilerPlugin("org.spire-math" % "kind-projector" % "0.9.10" cross CrossVersion.binary) | ||
) | ||
|
||
|
@@ -152,4 +153,14 @@ object BuildSettings { | |
testOnly in Test := (testOnly in Test).dependsOn(startDynamoDBLocal).evaluated, | ||
testOptions in Test += dynamoDBLocalTestCleanup.value | ||
) | ||
|
||
lazy val dockerSettings = Seq( | ||
maintainer in Docker := "Snowplow Analytics Ltd. <[email protected]>", | ||
dockerBaseImage := "snowplow-docker-registry.bintray.io/snowplow/base-debian:0.2.1", | ||
daemonUser in Docker := "snowplow", | ||
dockerUpdateLatest := true, | ||
dockerVersion := Some(DockerVersion(18, 9, 0, Some("ce"))), | ||
daemonUserUid in Docker := None, | ||
defaultLinuxInstallLocation in Docker := "/home/snowplow" // must be home directory of daemonUser | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters