Skip to content

Add new constraint and toolchain for docker support. - #235

Merged
xingao267 merged 3 commits into
bazelbuild:masterfrom
xingao267:docker
Nov 8, 2018
Merged

xingao267 merged 3 commits into
bazelbuild:masterfrom
xingao267:docker

Conversation

@xingao267

Copy link
Copy Markdown
Contributor

@xingao267
xingao267 requested a review from nlopezgi November 8, 2018 19:57

@nlopezgi nlopezgi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good other than the comment about the exec_compatible_with, but that's something that, if changes are required, you can address in a different cl.

toolchain(
name = "toolchain_docker",
exec_compatible_with = [
"@bazel_tools//platforms:linux",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you verify if we really need the exec_compatible_with given comments in bazelbuild/rules_k8s#215

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case I think we do need the exec_compatible_with constraints in order to select the right execution platform to run remote actions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Especially the new support_docker constraint is used to select the container with docker installed.

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