Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

builtin/docker: Introduce Resources map for configuring cpu, memory #1116

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

briancain
Copy link
Member

This commit introduces the ability to configure a containers resources
limits around cpu and memory when deploying with docker.

Fixes #608

This commit introduces the ability to configure a containers resources
limits around cpu and memory when deploying with docker.

Fixes #608
@@ -503,6 +525,16 @@ deploy {
),
)

doc.SetField(
"resources",
"A map of resources to configure the container with, such as memory or cpu limits.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
"A map of resources to configure the container with, such as memory or cpu limits.",
"A map of resources to configure the container with, such as memory or cpu limits",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this, it seems like some of our fields have periods, and others don't. But ultimately the docs generators adds them to the end when they get generated for the website, so maybe I'll leave this one here? Otherwise it's kind of confusing if it adds it back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Builtin: support docker deployment resource specifications
2 participants