-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
support attach
#10700
support attach
#10700
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v2 #10700 +/- ##
==========================================
+ Coverage 59.15% 59.17% +0.01%
==========================================
Files 115 115
Lines 9853 9869 +16
==========================================
+ Hits 5829 5840 +11
- Misses 3434 3437 +3
- Partials 590 592 +2
☔ View full report in Codecov by Sentry. |
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 know this is still waiting on the compose-go
side, will re-review once that's ready
cmd/compose/up.go
Outdated
if err := project.WithServices(attachTo, func(s types.ServiceConfig) error { | ||
if s.Attach == nil || *s.Attach { | ||
attachTo = append(attachTo, s.Name) | ||
} |
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.
If upOptions.attach
is not empty, won't this add duplicates?
62100a9
to
53f2f00
Compare
Signed-off-by: Nicolas De Loof <[email protected]>
What I did
Add support for
attach
in service config, which can be overridden by command line--attach --no-attach
Related issue
closes #10695
(not mandatory) A picture of a cute animal, if possible in relation to what you did