compose/pkg/api
Milas Bowman d7b0b2bd7d
watch: build & launch the project at start (#10957)
The `alpha watch` command current "attaches" to an already-running
Compose project, so it's necessary to run something like
`docker compose up --wait` first.

Now, we'll do the equivalent of an `up --build` before starting the
watch, so that we know the project is up-to-date and running.

Additionally, unlike an interactive `up`, the services are not stopped
when `watch` exits (e.g. via `Ctrl-C`). This prevents the need to start
from scratch each time the command is run - if some services are already
running and up-to-date, they can be used as-is. A `down` can always be
used to destroy everything, and we can consider introducing a flag like
`--down-on-exit` to `watch` or changing the default.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-09-07 13:27:23 -04:00
..
api.go watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
api_test.go move compose API into pkg/api 2021-06-15 15:52:48 +02:00
dryrunclient.go pkg/api: replace uuid for basic random id 2023-08-31 10:13:32 +02:00
errors.go Add gocritic to linters 2022-07-13 19:33:03 +02:00
errors_test.go move compose API into pkg/api 2021-06-15 15:52:48 +02:00
io.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
labels.go detect replacement container is created and inform printer so it attach and don't stop 2023-02-06 11:23:13 +01:00
proxy.go pull OCI remote resource 2023-09-07 07:27:32 +02:00