Commit Graph

643 Commits

Author SHA1 Message Date
Guillaume Tardif 1dc97e8c4b Compose as a cli plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:29 +02:00
Nicolas De Loof 85af8cdaaa local backend to rely on dockerCli's LoadDefaultConfigFile
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:28 +02:00
Nicolas De Loof 0bdad7e551 pass compose.Service to cobra commands, dependency-injection style
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:50:56 +02:00
Nicolas De loof cd4a08d0d6
Merge pull request #1530 from aiordache/recreate_after_build 2021-04-20 21:05:37 +02:00
Nicolas De Loof 5cead2266d
only stop/remove selected services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-20 19:06:41 +02:00
aiordache 31de84f547 Set image digest as service image to trigger recreation after build
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-20 15:15:24 +02:00
Ulysses Souza 46a7689043 Fix volume names to print simple volume names
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-04-15 16:27:58 -03:00
Guillaume Tardif d887bf7c0b
Introduce compose version command
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-15 09:18:42 +02:00
Nicolas De loof 0b968395dd
Merge pull request #1516 from docker/version_json
don't include stderr in moby exec output
2021-04-13 15:43:27 +02:00
Nicolas De Loof 4916b36b99
don't include stderr in moby exec output
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-13 15:35:26 +02:00
Chris Crone 411612ed8d Fix scan message with quiet flag
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-13 14:30:27 +02:00
Nicolas De loof 184c2b8c1a
Merge pull request #1503 from docker/metrics-failures 2021-04-13 08:37:23 +02:00
Ulysses Souza 6dbfc71a0d Fix compose config --profiles
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-04-12 00:53:50 -03:00
Guillaume Tardif 073d8e5545 Categorize failure metrics, set specific metrics for compose file parse error, file not found, cmdline syntax errors, build error, pull error.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-09 17:20:29 +02:00
Ulysses Souza 378d02dadd Refactor `up --build`
This restarts containers which had it's images rebuilt

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-04-08 20:37:16 -03:00
Guillaume Tardif eb7732ffec
Merge pull request #1505 from aiordache/image_cmd
Add `compose images` cmd
2021-04-08 11:24:35 +02:00
Nicolas De loof d073c93ff7
Merge pull request #1509 from docker/pause_project_name
pause/unpause only need project name. use getContainers where possible
2021-04-08 10:00:16 +02:00
Nicolas De Loof 7d85485242
pause/unpause only need project name. use getContainers where possible
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-08 09:40:50 +02:00
aiordache 08055d7c7a Add `compose images` cmd
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-07 16:08:09 +02:00
Guillaume Tardif 86f5e311d7 Replace custom error type for exit code with existing one from docker/cli.
Will also help to move towards CLI plugin.

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-07 15:48:37 +02:00
Guillaume Tardif 6a0269f7b9
Merge pull request #1483 from docker/windows_sucks
make windows "kill children process" code simpler
2021-04-07 10:55:22 +02:00
Nicolas De loof 74277f3496
Merge pull request #1495 from docker/no_service
deadlock waiting for services when none selected
2021-04-07 10:21:42 +02:00
Nicolas De loof bd5c188be6
Merge pull request #1494 from gtardif/cancel_docker_cli_metrics
Track cancel exit code from docker cli shellout to report correct status in metrics
2021-04-06 14:35:04 +02:00
Nicolas De loof acfdd2349b
Merge pull request #1496 from docker/compose_profiles
add support for COMPOSE_PROFILES
2021-04-06 11:55:37 +02:00
Nicolas De Loof 05958228ac
deadlock waiting for services when none selected
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-06 11:22:22 +02:00
Nicolas De Loof 2f6a636670
add support for COMPOSE_PROFILES
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-06 11:20:58 +02:00
Guillaume Tardif 6465bfec82 track cancel exit code from docker cli shellout to report correct status in metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-06 10:19:27 +02:00
Nicolas De Loof 0cd080a786
make metrics' source configuration (see compose-switch)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-01 14:42:05 +02:00
Nicolas De Loof a691cc98e7
make windows "kill children process" code simpler
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-31 15:24:50 +02:00
Nicolas De loof 9df272a893
Merge pull request #1470 from aiordache/build_args
Add `no-cache` build flag
2021-03-30 15:58:28 +02:00
Guillaume Tardif e0a828daae --memory is not deprecated, but not supported on buildkit. Issue a Warning and ignore flag
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-30 15:24:36 +02:00
Guillaume Tardif 2b1158f4c2 Adapt cli/mobycli to avoid duplicating shellout code
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-30 13:45:05 +02:00
Nicolas De loof 95d2159258
Merge pull request #1478 from docker/profiles
introduce config --profiles for parity with docker-compose
2021-03-30 12:03:59 +02:00
Nicolas De Loof 25d5367480
introduce config --profiles for parity with docker-compose
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-30 11:52:16 +02:00
Guillaume Tardif 435a51f9e4 Add scan message after docker build, add e2e tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-29 19:12:06 +02:00
aiordache 3f0ee7072f Add `no-cache` build flag
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-26 18:16:22 +01:00
Ulysses Souza 02744ac4f9 Add --ignore-pull-failures to command pull
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-24 14:44:04 -03:00
Nicolas De loof 9f81314124
Merge pull request #1451 from docker/down_sigterm 2021-03-22 17:18:03 +01:00
Nicolas De loof 40a24af897
Merge pull request #1445 from gtardif/ansi_flag 2021-03-22 17:08:19 +01:00
Nicolas De Loof a942ef4a81
Kill on second SIGTERM
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-22 16:56:02 +01:00
Nicolas De Loof 15b56b3e8d
--no-interpolate
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-22 10:01:34 +01:00
Guillaume Tardif 584ceab72a Fix \n not being rendered with backquotes
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-22 09:56:19 +01:00
Guillaume Tardif ffe309f595 Deprecated flag --no-ansi
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-19 17:46:25 +01:00
Guillaume Tardif 6482f7967c Added deprecated build flags parallel, compress, force-rm
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-19 17:37:08 +01:00
Guillaume Tardif 6562ec80f4
Merge pull request #1444 from docker/config_flags
introduce config --services, --volumes, --hash for backward compatibility
2021-03-19 16:57:25 +01:00
Nicolas De Loof ec5489a08c
introduce config --services, --volumes, --hash for backward compatibility
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-19 15:40:24 +01:00
Guillaume Tardif a86a4737da
Merge pull request #1438 from docker/port
introduce `port` command for parity with docker-compose
2021-03-19 15:08:09 +01:00
Guillaume Tardif 2bf3e9d1de
Merge pull request #1443 from docker/parallel
introduce --parallel  and --no-parallel (hidden, deprecated) flags
2021-03-19 15:07:05 +01:00
Guillaume Tardif e0344ea7b4
Merge pull request #1415 from ulyssessouza/add-restart
Add restart command
2021-03-19 15:04:57 +01:00
Nicolas De Loof 2acce2805b
introduce --parallel and --no-parallel (hidden, deprecated) flags for backward compatibility
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-19 14:53:15 +01:00