-
Notifications
You must be signed in to change notification settings - Fork 691
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
register toolchain only for container exec and use it in py*_image #1173
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
825ad4a
register toolchain only for container exec and use it in pyX_image
a1c4205
add platform for containerized execution
33152b3
fix compatible_with in toolchain + remove positional-args warning
3b202d9
use a custom platform for rbe
69fdf03
change platforms for rbe
7476ef4
more platform fixes for rbe
8f6345e
fix typo in WORKSPACE
ea1f19c
clean ups
61b959d
organize better toolchains/platforms
9cff262
update to 0.29.1 for repro tests
e257547
buildify
a3d854d
remove unnecessary rbe_platform
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright 2017 The Bazel Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
licenses(["notice"]) # Apache 2.0 | ||
|
||
# Constraints used to describe docker compatible toolchains. | ||
|
||
constraint_setting(name = "containerized") | ||
|
||
constraint_value( | ||
name = "run_in_container", | ||
constraint_setting = ":containerized", | ||
) | ||
|
||
# Default host platform that has constraint_value set for the | ||
# "@io_bazel_rules_docker//toolchains:run_in_container" constraint. | ||
# This platform must be registered to run xx_image targets | ||
# that require a custom toolchain to run inside the container | ||
# (other than, e.g., the autogenerated toolchain). This | ||
# currently only applies to py_image and py3_image targets | ||
# as the autogenerated py toolchain might point to a different | ||
# location than the py in the container. | ||
platform( | ||
name = "local_container_platform", | ||
constraint_values = [ | ||
"@io_bazel_rules_docker//platforms:run_in_container", | ||
], | ||
parents = ["@bazel_tools//platforms:host_platform"], | ||
) | ||
|
||
# Default RBE platform that has constraint_value set for the | ||
# "@io_bazel_rules_docker//toolchains:run_in_container" constraint. | ||
# This platform must be registered to run xx_image targets | ||
# that require a custom toolchain to run inside the container | ||
# (other than, e.g., the autogenerated toolchain). This | ||
# currently only applies to py_image and py3_image targets | ||
# as the autogenerated py toolchain might point to a different | ||
# location than the py in the container. | ||
platform( | ||
name = "rbe_container_platform", | ||
constraint_values = [ | ||
"@io_bazel_rules_docker//platforms:run_in_container", | ||
], | ||
parents = ["@buildkite_config//config:platform"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
removed "positional-args" due to bazelbuild/buildtools#726