makeusabrew / decking

A Docker helper to create, manage and run clusters of containers
http://decking.io
443 stars 36 forks source link

Support for container runtime constraints on CPU and memory #83

Closed hrbu closed 9 years ago

hrbu commented 9 years ago

Is there an option to define runtime constraints within the container-definition?

see https://docs.docker.com/reference/run/#runtime-constraints-on-cpu-and-memory

arahayrabedian commented 9 years ago

@hrbu not sure if it'll meet your needs, but you can try the "extra" portion of the json definition: see decking.io and find the definition of extra in there.

edit: basically: "extra runtime arguments, used as-is after the 'image' argument"

hrbu commented 9 years ago

@arahayrabedian saw this, but as i understand (and my test seemed to confirm it) those extra arguments are passed into the container to run a command there. so ... it did't meet my needs

arahayrabedian commented 9 years ago

ah, okay, i see what you mean now (sorry my interpretation was that extra string would append whatever cli extras you want, that is ambiguous as i re-read it now) and you suggest it runs some commands on startup, i'll leave this for someone else then.

makeusabrew commented 9 years ago

Will take a look at these; probably not for 0.4.0 but the next minor release after that.

makeusabrew commented 9 years ago

Done; look out for 0.4.0

makeusabrew commented 9 years ago

Fixed in 0.4.0

hrbu commented 9 years ago

Cool. Thanx a lot.