Provide default callback implementations for various commands#281
Provide default callback implementations for various commands#281marcuslinke merged 2 commits intomasterfrom
Conversation
Provide default callback implementations for various commands
There was a problem hiding this comment.
please put spaces after if, hard to read glued text
|
Hi @marcuslinke i think you can provide some time window or call for review other interested people before merge :) Imho it should add some quality degree in this library |
|
@KostyaSha Will do so next time. Thanks for reviewing. I will push a fixing commit soon. |
|
@marcuslinke what is the right way to print build output into some destination during build? but it didn't work. |
|
@KostyaSha On v1.4.0 the build command exec() returns a |
|
@marcuslinke i can update to 2.0.0 docker-plugin if it has no some bug blockers for usage ;) |
|
OK, OK your point ;-) I'm working on it... |
|
@marcuslinke i see fixes in master, maybe do some 2.0.1 and i will try migrate to it? |
|
@marcuslinke |
|
@KostyaSha For this you need v2.0.0 of docker-java hence the API is callback-driven there. There is only one issue left that should be fixed in the upcoming v2.0.1 bugfix release (#286). |
|
HI, trying buildimageCallback to be progressive But console output printed only after image fully build... |
|
Strange... This is almost the same implementation that is used in the |
|
Interesting idea, will try print() instead (it PrintStream). |
Yes, you was right, changed to |
|
readTimeout influences, it should be longer than any command output delay... Is it possible to have no timeout for read until tcp connection wouldn't be timeouted? |
|
seems i need review what is default and what was enforced in docker-plugin from previous times... |
|
Why you suspect a read timeout? |
|
@marcuslinke in jaxrs it 0 = infinity by default, probably it was bad idea set-in it. |
|
Hi, i ran into same problem with (jenkins) docker-plugin 0.15.0 which uses docker-java 2.1.1: Do you know if the issue you was talking about above is fixed in that 2.1.1 version? Tnx in advance, |
|
@stefanleh Could you provide logs when doing the very same build from docker CLI please? |
|
I think its related to the size of the data i try to copy. There i hit some timeout. |
|
@KostyaSha Any ideas? |
|
Just had a look into the plugin code. I think the client gets a timeout set somewhere. in com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher.Run.buildImage() they call ... String imageId = getClient().buildImageCmd(f) for running the callback. But i cant find where the connection is established and where the timeout is set. |
|
@stefanleh Read timeout for docker-java is set as shown here: https://github.com/docker-java/docker-java/wiki#intialize-docker-client-advanced |
|
Good to know :) |

No description provided.