compose/pkg
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 watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
compose watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
e2e watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
mocks pull OCI remote resource 2023-09-07 07:27:32 +02:00
progress progress: minor correctness fixes (#10871) 2023-08-03 15:14:17 -04:00
prompt use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
remote pull OCI remote resource 2023-09-07 07:27:32 +02:00
utils logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
watch replace dockerfile/dockerignore with patternmatcher/ignorefile 2023-08-23 00:43:17 +02:00