-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker:stage problem - no application is built #314
Comments
Okay. The |
$ cat build.sbt name := "my app" version := "1.2-SNAPSHOT" libraryDependencies ++= Seq( "commons-collections" % "commons-collections" % "3.1", "commons-lang" % "commons-lang" % "2.5", "com.google.guava" % "guava" % "13.0", "com.google.code.findbugs" % "jsr305" % "1.3.+", "log4j" % "log4j" % "1.2.16", "postgresql" % "postgresql" % "9.1-901.jdbc3", "mysql" % "mysql-connector-java" % "5.1.22", "org.apache.velocity" % "velocity" % "1.6.3", "javax.mail" % "mail" % "1.4.5", jdbc, anorm, cache ) play.Project.playScalaSettings packageArchetype.java_server Packaging.settings $ cat project/packaging.scala import sbt._ import com.typesafe.sbt.packager.Keys._ import sbt.Keys._ import com.typesafe.sbt.SbtNativePackager._ object Packaging { val settings: Seq[Setting[_]] = packagerSettings ++ deploymentSettings ++ Seq( daemonUser in Docker := "daemon", maintainer in Docker := "John Huss ", dockerBaseImage := "dockerfile/java", dockerExposedPorts in Docker := Seq(9000, 9443), dockerExposedVolumes in Docker := Seq("/opt/docker/logs") ) } |
Thanks. I'll take a closer look on monday. In the meantime @fiadliel may know |
There seems to be an issue with your build configuration, because Play already includes packaging settings. You should not include packagerSettings, deploymentSettings or archetype.java_server - that may be overriding/removing important settings. See also playframework/playframework#2915 I'm AFK for the week, so I can't easily find out exactly why this breaks the build right now. |
Thank you. Removing those parts fixed it. |
I'm testing out the new docker:stage task and having a problem. The first time I ran it, it generated the Dockerfile and a directory structure like "files/opt/docker/..." but without anything other than directories. Since then when I run it only the Dockerfile is created. If I clean first, and then do docker:stage it's not even running a compile or anything to create the application. The Dockerfile is the only thing being created.
sbt.version = 0.13.5
sbt-native-packager = 0.7.4
scala = 2.10.4
Mac OS X 10.8.5
Play 2.2.2
The text was updated successfully, but these errors were encountered: