Skip to content

feat: Support for --cpus and --memory resource options - #56

Merged
Mcrich23 merged 1 commit into
Mcrich23:mainfrom
cstea:main
Feb 20, 2026
Merged

feat: Support for --cpus and --memory resource options#56
Mcrich23 merged 1 commit into
Mcrich23:mainfrom
cstea:main

Conversation

@cstea

@cstea cstea commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds support for --cpus and --memory container resource limit flags during compose up
  • Reads values from deploy.resources.limits.cpus and deploy.resources.limits.memory in the compose file and passes them to the container run command

Test plan

  • Run compose up with a service that has deploy.resources.limits.cpus and deploy.resources.limits.memory set
  • Verify the container is created with the correct resource constraints
  • Run compose up without resource limits and verify no extra flags are passed

🤖 Generated with Claude Code

@Mcrich23

Copy link
Copy Markdown
Owner

@cstea I love this addition! Can you please add tests for it?

@cstea

cstea commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

@Mcrich23 Tests added.

@Mcrich23 Mcrich23 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks great! Thank you.

@Mcrich23
Mcrich23 merged commit dabb2d4 into Mcrich23:main Feb 20, 2026
1 check passed
explicitcontextualunderstanding pushed a commit to explicitcontextualunderstanding/Container-Compose that referenced this pull request Feb 27, 2026
explicitcontextualunderstanding pushed a commit to explicitcontextualunderstanding/Container-Compose that referenced this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants