Skip to content

Support selectable number of CPUs for docker_builder #741

@asomers

Description

@asomers

Description

The docker_builder task should support a selectable number of CPUs. Right now it's hard-coded to 4.

Context

The Nix project has some tasks that must use docker_builder, even though they can only take advantage of a single CPU. So we're wasting resources. Our builds would schedule sooner, and your bills would be lower, if we could reduce the CPU count.

Anything Else

The task in question:
https://github.com/nix-rust/nix/blob/5729d0f391775c98699f0f92f8df6b7f5f49fc7d/.cirrus.yml#L53

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions