Skip to content
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

dockerBuildAndPush does not log #82

Open
david-mcgillicuddy-ovo opened this issue Mar 6, 2018 · 1 comment
Open

dockerBuildAndPush does not log #82

david-mcgillicuddy-ovo opened this issue Mar 6, 2018 · 1 comment

Comments

@david-mcgillicuddy-ovo
Copy link

Hi, when running sbt dockerBuildAndPush I was unable to get the output of any logs i.e. the process just fails with:

[info] Tagging image <image> with name: <name>
[error] java.lang.RuntimeException: Failed to push
[error] 	at scala.sys.package$.error(package.scala:27)
[error] 	at sbtdocker.DockerPush$.apply(DockerPush.scala:42)

However switching to sbt docker dockerPush then the logs output just fine and I'm using this workaround for now.

I believe the problem might be that dockerBuildAndPush doesn't have a log stream defined although docker and dockerPush both do:
https://github.com/marcuslonnberg/sbt-docker/blob/master/src/main/scala/sbtdocker/DockerSettings.scala#L27

@marcus-drake
Copy link
Owner

Looking at the stacktrace it seems that the docker binary exited with a non zero exit code.
https://github.com/marcuslonnberg/sbt-docker/blob/master/src/main/scala/sbtdocker/DockerPush.scala#L42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants