kreuzwerker / terraform-provider-docker

Terraform Docker provider
Mozilla Public License 2.0
570 stars 187 forks source link

feat: add parameters for cpu quota handling #608

Open janLo opened 3 months ago

janLo commented 3 months ago

This exposes the options cpu_period and cpu_quota to the terraform docker_container resource and adds the convenience parameter cpus as it is used by the docker cli.

See https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler for upstream details

janLo commented 3 months ago

I've just realized, that #575 does a similar thing.

enc commented 2 months ago

Do you like in integrate the changes from #575 I think this would be great and I would love to merge it.

janLo commented 2 months ago

I'm happy to make changes but I think I don't completely get what you meant.