Implement Node property in Inspect container response introduces by swarm - #383
Conversation
|
@marcuslinke should we mix swarm and docker APIs in dockerClient, or create separate objects? |
|
I think we can keep the implementation in the same object, since the swarm API is just a proxy of the docker API, with some very small additions and modifications. We currently have a swarm cluster near production ready and the java client works very well with the swarm manager. |
|
@KostyaSha I agree with @fbuecklers in general, but the main point is to have working tests against a running swarm manager. But what about different swarm versions then? Currently we have no concept for testing against different docker engine/swarm versions. Related: #337. |
|
@marcuslinke that what i described in email :) Imho docker-java needs 'its' module with DinD tests. |
|
Related to issue #395 |
462fe63 to
5c4eb30
Compare
Codecov Report
@@ Coverage Diff @@
## master #383 +/- ##
==========================================
+ Coverage 61.58% 61.95% +0.36%
==========================================
Files 411 411
Lines 8172 8182 +10
Branches 530 530
==========================================
+ Hits 5033 5069 +36
+ Misses 2838 2813 -25
+ Partials 301 300 -1
Continue to review full report at Codecov.
|
|
Any chance to see this pull request in the 3.0.0 release? |
|
We are also using this changes to use docker-java with swarm cluster. Any change this will be available in the 3.0.0 release? |
|
Hey guys, any chance for this to go in the 3.0? |
|
@marcuslinke maybe we can merge without tests and allow users testing it? :D |
|
3.0.0 was already merged, so 3.1.0 sounds good enough. Hope swarm API become more stable now :) |
|
Please note that with the upcoming Docker 1.12 (remote api 1.24) Swarm will be included. Maybe the api will become more stable then.
|
|
https://twitter.com/docker/status/744940786899292161 That probably would be good point to start with :) But they banned HostConfig and it would require reviewing API updates and code again :( |
|
|
|
Live stream is happening! |
5c4eb30 to
606c538
Compare
606c538 to
589808e
Compare
|
I have brought my pull request up to date and add some test cases. I have also added an event test for the other node property. Did we wont to merge them? There are of cause the issue with the other case variant and swarm seems to behave differently on inspect and at the events API for the same property values! |
…se and add test cases for it
589808e to
dd9f01d
Compare
Implement the Node property returned by the docker swarm api
https://docs.docker.com/swarm/api/swarm-api/
I also like to implement the docker list command, wich respond with all available nodes in swarm, but the api is currently not implementation freindly as described in issue:
docker-archive/classicswarm#1214
So i delay the implementaion until the api is improved.