These are chat archives for sbt/sbt-native-packager
When I run
docker:publishLocal in a test-project I get an error saying that opt is not a directory (which it isn't.)
Trying with sbt-native-packager versions 1.1.4 and 1.2.0-M5, here's my build.sbt:
lazy val root = project.in(file(".")) .settings( scalaVersion := "2.11.8", name := "packager-test", version := "0.1", maintainer := "meg", fork in run := true, javaOptions += "-Dsecret.message=The proof is in the pudding..." ) .enablePlugins(DockerPlugin)
> ; clean; docker:publishLocal [success] Total time: 0 s, completed 2016-aug-12 10:41:43 [info] Sending build context to Docker daemon 2.048 kB [info] Sending build context to Docker daemon 2.048 kB [info] Step 0 : FROM java:latest [info] ---> bcc5e8d116c9 [info] Step 1 : MAINTAINER meg [info] ---> Using cache [info] ---> 2c7d62fe2b6d [info] Step 2 : WORKDIR /opt/docker [info] ---> Using cache [info] ---> 2abc5718bc9c [info] Step 3 : ADD opt /opt [error] opt: no such file or directory [trace] Stack trace suppressed: run last docker:publishLocal for the full output. [error] (docker:publishLocal) Nonzero exit value: 1 [error] Total time: 0 s, completed 2016-aug-12 10:41:43
universal:packageBinis going to be run? Otherwise, with it on all the time, the jars are getting packaged before each test run, and that is very slow.
JavaAppPackagingPluginthat will set up your application build. The docker plugin will be automatically enabled. If you only enable
DockerPluginyou have an empty application.
exportJars in packageBin := true. Not sure if this works
exportJars := true, which seems counterintuitive, but I think I have a functioning build.
dist/conf/application.ini, I know I can specify a Java system variable. Presumably I can specify more than one, and if I do, must they all be on the same line? Where are the contents of this file described?
application.iniis described in the docs. The recommended way is to use
javaOptions in Universal. Native-packager will generate the application.ini and the necessary bashScriptDefines