compose/pkg
Laura Brehm dcbf005fe4
up: gracefully teardown when command ctx cancelled
Previously, if a long-lived plugin process (such as
an execution of `compose up`) was running and then
detached from a terminal, signalling the parent CLI
process to exit would leave the plugin process behind.

To address this, changes were introduced on the CLI side
(see: https://github.com/docker/cli/pull/4599) to enable
the CLI to notify a running plugin process that it should
exit. This makes it so that, when the parent CLI process
is going to exit, the command context of the plugin
command being executed is cancelled.

This commit takes advantage of these changes by tapping into
the command context's done channel and using it to teardown
on an up.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2023-12-23 02:49:27 +00:00
..
api introduce build --with-dependencies 2023-12-20 15:58:54 +01:00
compose up: gracefully teardown when command ctx cancelled 2023-12-23 02:49:27 +00:00
e2e avoid use of service.Name when iterating on project.Services 2023-12-05 18:54:31 +01:00
mocks deps: update docker/cli to fix go version selection issue 2023-12-19 14:15:16 +00:00
progress progress: minor correctness fixes (#10871) 2023-08-03 15:14:17 -04:00
prompt github.com/golang/mock is deprecated 2023-12-13 14:47:39 +01:00
remote adopt compose-go/v2 2023-12-05 18:54:31 +01:00
utils logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
watch deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00