Add support for build arguments#2540
Conversation
|
Thanks for the PR! Please see the proposed format in #2163 for how we'd like to implement this, |
|
@dnephin Ah - I see, that makes sense. Is this something that someone @ dockerhq is implementing or should I tackle that issue as a whole? |
|
@garrettheel no one is working on it yet, so if you'd like to pick it up, that would be great Let me know if you have any questions, either here or on irc |
|
@dnephin I had a go at implementing this, could you take a look? |
|
Looks like a great start. I think it'd be better to only support We should probably extract the config versioning stuff out of #2421 and get it into master so it's not blocking PRs like this one. |
There was a problem hiding this comment.
Please use six.string_types instead of this try/except
|
Thanks! this is looking great. I think we'll need a couple days to get #2421 merged so that we have version support and we can add this to the v2 config. |
|
Fixed all of your comments. I'll keep an eye on #2421 and rebase when it's merged |
|
/ping @garrettheel #2421 got merged 😉 |
|
I like the idea of supporting |
|
👍 @dnephin, but that one has to be well documented, I think. Otherwise, people will probably get a headache trying to use both Also: In which version and when will this (presumably) be released? I really need it! :) |
|
I've added the version milestone (1.6) |
|
We've made some rather large changes to support the v2 format, and I think this branch and #2458 will cause a few merge conflicts with each other. Either way, I think you can expect to see something in master by the end of the week, but until then there isn't much you'll be able to do. |
|
@dnephin I will have some time tomorrow to build and run this local... I really need this feature! 👍 Thanks! |
|
Needs another rebase. @garrettheel just want to let you know that we've got code freeze coming up soon, and we want to get this in. We may need to carry this PR and make some small changes to get it merged. #2653 is rebased on the latest master with a few small changes. I'll leave a few comments here about the docs changes, but we might just end up pulling them into #2653 if we run out of time. |
There was a problem hiding this comment.
I think since parse_build_arguments() always returns a new dict, these two lines could be:
args = parse_build_arguments(build.get('args'))There was a problem hiding this comment.
We have #2622 to finalize this, but I think what we'd like to do is only include the v2 docs in this section, and have a separate section at the bottom for migration, and differences between the versions.
Allows 'build' configuration option to be specified as an object and adds support for build args. Signed-off-by: Garrett Heel <garrettheel@gmail.com>
|
I've rebased this again off master |
|
Closed via #2653 |
|
@garrettheel thanks again for all your work getting this in! |
|
@garrettheel Thanks all!!! So waited feature! |
|
cant wait for compose 1.6 to have this! |
|
@gggeek The most complete docker-compose yet! |
Fixes # #2163