Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --scale to compose create #10208

Merged
merged 2 commits into from
Jan 27, 2023
Merged

Add --scale to compose create #10208

merged 2 commits into from
Jan 27, 2023

Conversation

laurazard
Copy link
Member

Signed-off-by: Laura Brehm laurabrehm@hey.com

What I did

Added --scale argument to compose create, moved scale logic from cmd/compose/up.go into cmd/compose/create.go.

Related issue

fixes #10204

(not mandatory) A picture of a cute animal, if possible in relation to what you did

image

@laurazard laurazard requested review from a team, nicksieger, ndeloof, StefanScherer, ulyssessouza, glours and milas and removed request for a team January 26, 2023 11:56
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Base: 73.89% // Head: 73.89% // No change to project coverage 👍

Coverage data is based on head (a288332) compared to base (d5d9f67).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2   #10208   +/-   ##
=======================================
  Coverage   73.89%   73.89%           
=======================================
  Files           2        2           
  Lines         272      272           
=======================================
  Hits          201      201           
  Misses         60       60           
  Partials       11       11           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ndeloof
Copy link
Contributor

ndeloof commented Jan 26, 2023

LGTM.
Regarding #10204, I guess resource consumption happens on start, not create. Then, use of --parallel is an alternative to avoid starting all containers at once.

@laurazard laurazard changed the title Add scale create Add --scale to compose create Jan 26, 2023
@laurazard laurazard merged commit 69c0a58 into docker:v2 Jan 27, 2023
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.

docker-compose create --scale
3 participants