sbt-native-packager icon indicating copy to clipboard operation
sbt-native-packager copied to clipboard

sbt docker:publishLocal reports no errors but not generating anything

Open peidaqi opened this issue 6 years ago • 1 comments

Run command:

sbt docker:publishLocal

No error reported. Message shows:

[info] published PROJECT_XXX to /home/USER/.ivy2/local/.....

But no ./target/docker/ generated.

  • What sbt-native-packager are you using 1.4.1
  • What sbt version 1.1.2
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Ubuntu 18.04
  • What package are you building (e.g. docker, rpm, ...) docker
  • What version has your build tool (find out with e.g. rpm --version) n/a
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7) Ubuntu 18.04

peidaqi avatar Sep 06 '19 20:09 peidaqi

Thanks @peidaqi for your report :smile: Can you give some more information on your error to be able to help:

  • Can you give the complete output of your sbt console?
  • Can you give a small build.sbt to reproduce this error?
  • Have you tried starting your docker image?
  • Is the image present in the docker images output?

Note that docker doesn't generate a physical file in the target directory, but an image is stored to your local docker registry.

muuki88 avatar Sep 17 '19 08:09 muuki88