mirror of
https://github.com/docker/compose.git
synced 2026-08-04 06:38:45 +00:00
Add docker compose wait
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
c496c23071
commit
edd76bfd70
12 changed files with 310 additions and 1 deletions
|
|
@ -84,6 +84,15 @@ type Service interface {
|
|||
Watch(ctx context.Context, project *types.Project, services []string, options WatchOptions) error
|
||||
// Viz generates a graphviz graph of the project services
|
||||
Viz(ctx context.Context, project *types.Project, options VizOptions) (string, error)
|
||||
// Wait blocks until at least one of the services' container exits
|
||||
Wait(ctx context.Context, projectName string, options WaitOptions) (int64, error)
|
||||
}
|
||||
|
||||
type WaitOptions struct {
|
||||
// Services passed in the command line to be waited
|
||||
Services []string
|
||||
// Executes a down when a container exits
|
||||
DownProjectOnContainerExit bool
|
||||
}
|
||||
|
||||
type VizOptions struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue