Repository navigation
add support for runtime option in service definitions - #5405
Conversation
shin-
left a comment
There was a problem hiding this comment.
Thank you for your contribution!
However, there are 2 major problems with this:
- The config schema for v3 can not be changed. Additions to the schema may be suggested on the docker/cli repo and then ported back to Compose. For this PR, support for the option should be added in the 2.3 schema instead
- There's no tests.
5cf82a5 to
e28c195
Compare
|
@shin- Thank you for your kind reply.
I have recommitted the code which only adding
I have tried to add some tests before, but docker only provides Could you give me some suggestions, thank you. |
|
Cool, thank you for applying the schema changes! For the tests, I think there are 3 things we would like to do:
Let me know if any of that is unclear and I'll do my best to assist. |
|
Thank you. Let me have a try first. |
02cfa11 to
f700b73
Compare
|
@shin- I have created both unit and integration tests for But jenkins always report error due to Please have a look, thank you. |
|
Sorry to randomly interject, but I've been following this PR in eager anticipation of replacing nvidia-docker-compose for good. @cuckoohello If you look at the build output at https://jenkins.dockerproject.org/job/docker/job/compose/job/PR-5405/9/console you will see that there are in fact errors/warnings that you can address. Namely: Thanks for working on this enhancement, it will certainly be very useful for CUDA users in the future! |
1f83cf4 to
b9beda1
Compare
close docker#5360 Signed-off-by: Yafeng Shan <[email protected]>
b9beda1 to
e4e92dd
Compare
@cuckoohello, have you made any progress on this? |
|
@andyneff I have tried to add support for docker/cli, but find there're much more work need to be done. At least there projects need to be adapted. I will try to manage this next week, and give you feedback |
|
@cuckoohello Sorry, it was a busy month. Changes LGTM now for the most part, just a few typos but I'll fix those in a separate commit. Thanks a lot! |
|
I'm not sure about this, but is it supposed to work on schema v3? I just tried the exemple above on master, it only works for me if I change the schema version to 2.3. |
|
@fredericgermain You can look at the discussion above first. If you want to use runtime option for schema v3 and above, the only thing you need to do is just modify the config schema for the corresponding json file. But currently config schema json files for v3 and above in docker compose bump from upstream docker repo, don't accept any modification. So if you want to make these files changed, you need to pull request to upstream repo I don't have enough time to do this now... |
Works with nvidia-docker2
For docker compose
docker-compose upclose #5360
Signed-off-by: Yafeng Shan [email protected]