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

docker-container: place build containers in a separate cgroup #782

Merged
merged 2 commits into from
Sep 30, 2021

Commits on Sep 29, 2021

  1. docker-container: support --driver-opt cgroup-parent=...

    This allows the parent cgroup to be customised, which allows resource
    limits to be imposed on build containers separately from "user"
    containers.
    
    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    b5bc754 View commit details
    Browse the repository at this point in the history
  2. docker-container: use /docker/buildx cgroup by default

    This allows resource limits to be applied to all builds on a host.
    For example to limit the total amount of CPU used by builds:
    
    https://medium.com/@asishrs/docker-limit-resource-utilization-using-cgroup-parent-72a646651f9d
    
    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    d5908cd View commit details
    Browse the repository at this point in the history