-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Remove Job from docker images
#12184
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
Conversation
|
Requires #12163 to be merged first |
integration/utils_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just copy behavior of getDaemon here? Because I'm not happy with exposing getDaemon from server just for integration tests. Also this should reduce size of patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure - done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these to keep api < v1.7 working? I would almost say since docker 0.7 uses v1.7 and I couldnt get any cli to work that was less than that, we could remove anything for < v1.7 for api but idk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfrazelle this is similar to what we played with yesterday and probably can be removed (and I wouldn't mind) but I didn't make a fuss about this one because generating this legacy json was easy, while the one we were looking at yesterday was a pain.
If people want it removed, I can do so.... just need to hear some opinions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind if we keep it, just saying it doesnt work anyways ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually this does appear to work for me. Yesterday we were playing with 'ps' not 'images'.
824aace to
227aa5b
Compare
graph/list.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename it to Images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also maybe []*types.Image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok got both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a quick comment, I didn't read the PR thoroughly, but we introduced HackGetGlobalVar when we introduced jobs. I'm surprised to see this as the goal of this PR is to remove jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just temporary for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok great
|
Any other comments? |
|
LGTM |
Also removes engine.Table Signed-off-by: Doug Davis <dug@us.ibm.com>
|
I just realized that my check for boolean query params was incorrect. I was looking just for "1" so I added a toBool() func to mimic what the old code did (", no, 0, none, false all mapped to 'false', everything else maps to 'true'). Personally I think its a bit backwards, I would prefer to look for true/1/... and default everything else to 'false' but I didn't want to change the current behavior. |
|
any other comments? |
|
@duglin Just to be sure - did you fix PS from your previous PR? |
|
do you mean the "1"/true stuff? If so,I think so - I tried to get all of the stuff in api/server/server.go. |
|
LGTM |
|
hi @duglin why you remove the |
|
@HuKeping if I remember correctly, it was because there wasn't a way to get to a daemon from within those testcases, plus the integration-cli tests should have covered it. |
|
Thanks @duglin , I am removing Job from |
Also removes engine.Table
Signed-off-by: Doug Davis dug@us.ibm.com