-
Notifications
You must be signed in to change notification settings - Fork 634
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
feat(compose_up): add --abort-on-container-exit flag #2873
feat(compose_up): add --abort-on-container-exit flag #2873
Conversation
6bfd736
to
c1bfc73
Compare
54f8a96
to
f5d6c66
Compare
@AkihiroSuda could you please re-run the pipeline? |
done. Next time your can rewrite your commit this will trigger the pipeline |
Thanks! |
pkg/composer/logs.go
Outdated
@@ -39,7 +40,7 @@ type LogsOptions struct { | |||
NoLogPrefix bool | |||
} | |||
|
|||
func (c *Composer) Logs(ctx context.Context, lo LogsOptions, services []string) error { | |||
func (c *Composer) Logs(ctx context.Context, lo LogsOptions, services []string, abortOnContainerExit bool) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add this to LogsOption
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was out of scope, but if it's ok for you I can move it under the LogsOption
struct
docs/command-reference.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider squashing commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
f5d6c66
to
0f9c8de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Fixes #2795 .
This PR adds the flag
--abort-on-container-exit
flag fornerdctl compose up
command.As the flag says, using it all containers are being stopped if any container was stopped during the run.