-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
FR: Run Bazel actions inside a container #132
Comments
fundamentally this is a bad idea. see why: #35 (comment) |
I think it's possible that there's a better way to containerize actions, we should give it some thought. But as we wrote in the main README, the goal here is to prevent unmaintainable design mistakes that we learned from rules_docker. Also Bazel has its own way of providing isolation for build actions, so it's not clear to me why we would implement another one in rules_oci. I'd like to see some experiments with |
I dug a bit into what can be done; this looks possible with the docker strategy. with the https://github.com/GoogleContainerTools/kaniko combination, it should work |
I'll experiment with |
I think we should slip this from 1.0 already, since we'd like to get an RC out this week, and it's still a science project. |
One use case is pre-generating a .bazelrc for remote caching that has a cache key prefix based on the system dependencies that aren't tracked by Bazel. Such a task needs to be ran in the container to be accurate. I do agree that generally speaking such a thing should not really be necessary. |
@aw185176 I don't think that sounds like a containerization task. If you want Bazel flags to be dynamic based on the system, then a |
With that approach you then need to sync said |
Closing as completed #570 |
Similar feature to
container_run_and_commit
in rules_dockerSee
The text was updated successfully, but these errors were encountered: