terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

feat: support setting cpu shares

Open Blackskyliner opened this issue 2 years ago • 8 comments

This PR implements #331

Blackskyliner avatar Jul 31 '23 13:07 Blackskyliner

Hi @Blackskyliner , thank you for such a great work!

I'm wondering how can I use your fork before it's merged?

jizusun avatar Aug 09 '23 15:08 jizusun

@jizusun

As far as I know you will have to follow this: https://developer.hashicorp.com/terraform/language/providers/requirements#in-house-providers

So register it with either a private registry or under your own namespace in the official registry.

EDIT: Or host it as local_mirror or even network_mirror which may be a bit more involved: https://developer.hashicorp.com/terraform/cli/config/config-file#provider-installation

Blackskyliner avatar Aug 14 '23 12:08 Blackskyliner

Any news about this PR ?

midoriiro avatar Oct 17 '23 05:10 midoriiro

would love to see this merged

twsl avatar Jan 06 '24 20:01 twsl

I don't get why this is not moving anywhere. No initial review done in almost a year now.

There is need for this by some, it makes sense to integrate it as it was done for gpus.

So is this whole repository/plugin deprecated not maintained anymore?

I can also see that its not top-priority to look into this repository until they need it for their business but it would be great if at least on an occasional basis one of the authorized people could look into some PRs. Otherwise the PR feature could just be disabled to indicate that nothing can be contributed because of never-reviewed-because-of-time-or-incentive-constraints, as contributors also take their time to provide the patch as PR which may also lead to double implementations as seen here where now both implementations will need to be compared as which to integrate if a review gets to get going, increasing the workload for the reviewer.

Blackskyliner avatar May 07 '24 10:05 Blackskyliner

We are moving forward to fix the pipeline in the newest PR. If this is done, we will work on all the PRs. Unfortunately it will take a short while to get up to speed in the project. Your support would be apprechiated. #613

enc avatar May 07 '24 12:05 enc

Rebased onto current master w/o problems and/or any conflicts.

Do I need to add a test for the changes or do we assume that the config parsing and used library is well-tested enough.

Blackskyliner avatar Jun 05 '24 21:06 Blackskyliner

I don't know how feasible this is, but a really useful addition would be the ability to specify the CPU number in percent. That way if deployed to a different kind of host with more / less CPUs, it would adjust the amount of CPU allocated.

mthemis-provenir avatar Sep 13 '24 12:09 mthemis-provenir

Hello, I was looking for cpus limit solution and I came across on this PR. What is the current state of the PR?

sylvain-pierrot avatar Jan 08 '25 13:01 sylvain-pierrot

@enc I can upgrade my PR to latest master but would only do that if it would get merged in a timely manner.

Blackskyliner avatar Jan 14 '25 13:01 Blackskyliner