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 docker compose wait #10742

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Add docker compose wait #10742

merged 1 commit into from
Jul 2, 2023

Conversation

ulyssessouza
Copy link
Collaborator

What I did
Add wait command

Related issue
Resolves #10395

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

@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Patch coverage: 77.14% and project coverage change: +0.07 🎉

Comparison is base (c496c23) 59.03% compared to head (edd76bf) 59.11%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10742      +/-   ##
==========================================
+ Coverage   59.03%   59.11%   +0.07%     
==========================================
  Files         113      115       +2     
  Lines        9774     9844      +70     
==========================================
+ Hits         5770     5819      +49     
- Misses       3419     3435      +16     
- Partials      585      590       +5     
Impacted Files Coverage Δ
pkg/api/api.go 43.39% <ø> (ø)
pkg/api/proxy.go 39.28% <50.00%> (+0.33%) ⬆️
pkg/compose/wait.go 68.75% <68.75%> (ø)
cmd/compose/wait.go 90.32% <90.32%> (ø)
cmd/compose/compose.go 71.03% <100.00%> (+0.08%) ⬆️

... and 3 files with indirect coverage changes

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

Copy link
Member

@nicksieger nicksieger left a comment

Choose a reason for hiding this comment

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

LGTM!

@nicksieger
Copy link
Member

One more thing, what do you think about adding a e2e or cuke test?

pkg/compose/wait.go Outdated Show resolved Hide resolved
@ndeloof
Copy link
Contributor

ndeloof commented Jun 29, 2023

this new command deserves an e2e tests (says the guy who never writes tests :P)

@ulyssessouza
Copy link
Collaborator Author

@ndeloof @nicksieger The idea was to validate the concept first (that's the reason the draft). I'll write the tests now.

},
}

cmd.Flags().BoolVar(&opts.downProject, "down-project", false, "Drops project when the first container stops")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now I just added this --down-project. But I can imagine having a stop-project or stop-services, only stopping the services we enumerated in the wait

@ulyssessouza ulyssessouza force-pushed the add-wait branch 3 times, most recently from bb1d8a2 to 2ba1ed5 Compare June 30, 2023 14:05
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
@ulyssessouza ulyssessouza marked this pull request as ready for review June 30, 2023 14:10
@ulyssessouza ulyssessouza requested a review from ndeloof June 30, 2023 14:10
@ulyssessouza ulyssessouza merged commit fa3e16c into docker:v2 Jul 2, 2023
@renovate renovate bot mentioned this pull request Feb 15, 2024
1 task
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.

Add wait command to docker compose
3 participants