-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add composefile schema 3.7 with platform #1081
Conversation
17e5af6
to
e466323
Compare
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.
LGTM
Are we really okay with adding non-Swarm compatible options to v3? I'm asking because it's a significant depart from our strategy so far (with the exception of build sub-options) and I'm curious how it'll affect user experience. I'm guessing the rationale is that Swarm (/kube?) will support the option eventually? |
Yes, that's part of the rationale — other part is I really wish we have as divergence between v2 and v3 composefile evolution 👼 |
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 requires more eyes; LCOW (and thus the --platform
option) is still experimental, and things may change (possibly including the format of the --platform
string (e.g., on Windows, some situations not only require the platform and architecture, but also OS version 😞 (IIRC))
I'm also a bit out of sync with the discussion around that (i.e, what format the --platform
should take; string, or structured approach)
ping @johnstep @jhowardmsft PTAL
How rigid do you want to be? Docker compose should perhaps support an experimental flag just like the docker for windows? So that we can get to try out the new stuff. Maybe I am asking for too much, I don't know. 🤔 |
Well, a spec, once published, cannot be changed, so that's why I want to be sure it's finalised and agreed on.
Having this as an extension field ( |
So the That said, |
e466323
to
ddd1590
Compare
It's ignored for now (docker stack deploy) and will print a warning if present. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
ddd1590
to
2617f47
Compare
Closing this as it staled 😓 |
no worries @vdemeester fixed by the auto-detection, so it's fine :) |
It's ignored for now (docker stack deploy) and will print a warning if present.
Fixes #1050
Also linked to docker/compose#5985
Signed-off-by: Vincent Demeester vincent@sbr.pm