lagom / lagom-samples

https://developer.lightbend.com/start/?group=lagom
Creative Commons Zero v1.0 Universal
87 stars 82 forks source link

Repository for publishing is not specified. #168

Open shivam-880 opened 4 years ago

shivam-880 commented 4 years ago

This is regarding the shopping-cart-scala app.

I get the following error when I try to publish the docker images to docker hub:

[error] java.lang.RuntimeException: Repository for publishing is not specified.
[error]     at scala.sys.package$.error(package.scala:26)
[error]     at sbt.Classpaths$.$anonfun$getPublishTo$1(Defaults.scala:2644)
[error]     at scala.Option.getOrElse(Option.scala:121)
[error]     at sbt.Classpaths$.getPublishTo(Defaults.scala:2644)
[error]     at sbt.Classpaths$.$anonfun$ivyBaseSettings$48(Defaults.scala:2089)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)

I pass docker username and respository as an argument to sbt like so:

sbt -Ddocker.username=codingkapoor -Ddocker.registry=index.docker.io

Images do get pushed but I still the error when I try to publish docker:publish.

Please suggest. TIA.

octonato commented 4 years ago

Have you followed this guide? https://developer.lightbend.com/guides/openshift-deployment/lagom/building-using-sbt.html

shivam-880 commented 4 years ago

Yes. @renatocaval