Skip to content
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

llb: force platform in llb and allow constraints #462

Merged
merged 4 commits into from
Jun 25, 2018

Conversation

tonistiigi
Copy link
Member

@tonistiigi tonistiigi commented Jun 22, 2018

This forces LLB definition to a specific platform to remove the ambiguity and allow workers to resolve correct images and validate worker constraints.

Constraints/platform can be defined per vertex or default can be set for the whole graph during marshal. If default platform is not set it is detected.

WIP: need to validate this actually works, add tests and fix examples to linux-amd64

@tiborvass

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi
Copy link
Member Author

Marshal roundtrip tests added. Currently, only for platforms feature but same helpers can be used for more tests in the future.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@AkihiroSuda AkihiroSuda merged commit 19612b9 into moby:master Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants