Commit Graph

479 Commits

Author SHA1 Message Date
Nicolas De Loof 597598cb7a only start container once we have a wait channel set, to prevent race condition with fast terminating container
see https://github.com/docker/cli/blob/master/cli/command/container/run.go#L157-L168

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-15 10:13:19 +02:00
Nicolas De Loof 1dc0c4cef9
fix warning message
close https://github.com/docker/compose-cli/issues/1536

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-14 08:19:22 +02:00
Nicolas De loof 8e8635f520
Revert "E2e test improvements" 2021-04-13 17:15:19 +02:00
Nicolas De loof 9abd990e1c
Merge pull request #1533 from chris-crone/e2e-test-improvements 2021-04-13 15:44:30 +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
Nicolas De loof 31e93963f7
Merge pull request #1512 from docker/resize
resize terminal and monitor SIGWINCH
2021-04-13 15:33:33 +02:00
Nicolas De loof 5841e75cb2
Merge pull request #1532 from chris-crone/fix-scan-msg
Fix scan message with quiet flag
2021-04-13 15:30:23 +02:00
Chris Crone af74207f82 local.e2e: Reduce number of test images
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-13 15:15:55 +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 6ec682cade
ignore mount options which don't match type
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-13 11:53:06 +02:00
Nicolas De Loof 26b8ef0f49 pass config file to buildkit for authentication
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-13 09:49:13 +02:00
Nicolas De loof 184c2b8c1a
Merge pull request #1503 from docker/metrics-failures 2021-04-13 08:37:23 +02:00
Nicolas De Loof 076f15c254
configure container limits and resources
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-12 15:46:18 +02: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
Nicolas De Loof be5d78ad10
resize terminal and monitor SIGWINCH
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-08 12:33:11 +02:00
Nicolas De loof 6aed81e951
Merge pull request #1511 from gtardif/fix_test_race
Avoid race between parallel tests, add specific build sample for scan_message_test
2021-04-08 12:18:31 +02:00
Guillaume Tardif eb7732ffec
Merge pull request #1505 from aiordache/image_cmd
Add `compose images` cmd
2021-04-08 11:24:35 +02:00
Guillaume Tardif 088b13b9df Avoid race between parallel tests, add specific build sample for scan_message_test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-08 11:04:24 +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
Nicolas De Loof 15a21a449f
add support for service_completed_successfully
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-07 14:31:15 +02:00
Nicolas De loof 5b61e80e92
Merge pull request #1467 from ulyssessouza/progress-tail-msgs
Add plain tail messages on progress writer
2021-04-07 10:20:47 +02:00
Nicolas De Loof dc036c2686
don't use filepath to process remote bind paths
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-06 13:29:25 +02:00
Guillaume Tardif d5efef2aa7 Use old build for windows engine also on compose up
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-01 09:59:01 +02:00
Guillaume Tardif ac1696e47b Removed race in e2e test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-30 17:00:10 +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 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
aiordache e92b2f80d2 Shell out to docker cli for windows container builds
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-30 13:42:52 +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 e5834f37fd Add tail messages on progress writer
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-25 18:21:36 -03:00
Guillaume Tardif ee4e85ae1d
Merge pull request #1462 from docker/rawTerminal
set terminal in character mode when attached to a container
2021-03-25 18:17:27 +01:00
Guillaume Tardif d13bc958bc
Merge pull request #1463 from aiordache/ipc_support
Add IPC support
2021-03-25 16:13:56 +01:00
Guillaume Tardif b24a3e1486
Merge pull request #1455 from ulyssessouza/cache-container-list-on-down
Reuse container list on command down
2021-03-25 16:13:10 +01:00
aiordache baeede2c6c Add IPC support
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-25 10:27:15 +01:00
Ulysses Souza 31e59f6919 Refactor Down to avoid double ContainerList
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-24 17:48:23 -03: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 d4a8e92f46
set terminal in character mode when attached to a container
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-24 15:37:32 +01:00
Nicolas De Loof 9af5ea4b6a
run ContainerWait in background so we catch container exit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-22 16:31:10 +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 9ace15c9e5
Merge pull request #1439 from docker/build_url
Support build.context with git URLs
2021-03-19 15:12:08 +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 e0344ea7b4
Merge pull request #1415 from ulyssessouza/add-restart
Add restart command
2021-03-19 15:04:57 +01:00
Nicolas De Loof 8b38874aba
introduce `port` command for parity with docker-compose
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-19 13:31:42 +01:00
Nicolas De Loof 4b1297ec71
Support build.context with git URLs
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-19 10:21:12 +01:00
Nicolas De loof 3366131096
Merge pull request #1437 from gtardif/compose-e2e-cleanup
Cleanup remaining containers after compose e2e tests
2021-03-19 08:06:46 +01:00
Guillaume Tardif 34d03cce57 Cleanup remaining containers after compose e2e tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-18 17:03:53 +01:00
Ulysses Souza 1926820daa Add e2e tests
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-18 09:51:28 -03:00
Nicolas De Loof 70694e12a2
add support for a few more composefile attributes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-18 11:22:40 +01:00
Guillaume Tardif 3f502000e2
Merge pull request #1434 from docker/PortBindings
set PortBinding HostIP
2021-03-17 18:35:39 +01:00
Nicolas De Loof 8f7e7abc6c
set PortBinding HostIP
close https://github.com/docker/compose-cli/issues/1403

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-17 14:05:03 +01:00
Nicolas De Loof 949e8bb090
use "container name witout project" for both logs and events
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-17 11:38:43 +01:00
Ulysses Souza 2fdc3bad48 Add restart command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-16 02:02:36 -03:00
Guillaume Tardif 8c99bb2c29 Fix build image label mapping
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-15 11:33:37 +01:00
Guillaume Tardif e2d92ece50 Fix log expectation with random exec order
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-15 11:12:25 +01:00
Nicolas De loof 30e2d1d360
Merge pull request #1424 from gtardif/more_composefiles_attr
Map composefiles privileged, isolation
2021-03-15 09:23:11 +01:00
Guillaume Tardif 92e4d0bf2a
Merge pull request #1413 from docker/refactor
refactoring: create backend in main then pass as command target
2021-03-12 16:27:35 +01:00
Nicolas De Loof 48402585fd
replace passing parameters by context with singletons
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-12 15:28:17 +01:00
Guillaume Tardif c176fcc1d9 Map composefiles privileged, isolation
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-12 10:08:01 +01:00
Guillaume Tardif 2c50885484 Add support for composefile attributes
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-11 17:18:30 +01:00
Guillaume Tardif 9301c298ef
Merge pull request #1390 from ulyssessouza/quiet-pull
Add `quietPull` option to `up`
2021-03-11 09:09:55 +01:00
Ulysses Souza aa4d15d28c Add `quietPull` option to `up`
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-10 11:43:53 -03:00
Guillaume Tardif f4c68428bd Add remote engine context e2e
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-10 13:51:28 +01:00
Nicolas De loof 3999eea066
Merge pull request #1400 from docker/tls_flags 2021-03-09 14:48:53 +01:00
Nicolas De loof 4a8a1aeb48
Merge pull request #1396 from docker/events
introduce docker compose events
2021-03-08 14:37:15 +01:00
Nicolas De Loof 9c4d8ab158
(re)attach to container after restart
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-08 14:11:15 +01:00
Guillaume Tardif 3f600281e6
Merge pull request #1354 from ulyssessouza/fix-pull-arch
Take `platform` in account on pulling and building images
2021-03-08 12:24:10 +01:00
Nicolas De Loof 4c592700ee introduce docker compose events
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-08 12:19:05 +01:00
aiordache 29cc59cf42 Return exit code 1 if engine error on version query
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-08 11:54:52 +01:00
Nicolas De loof f08c58f903
Merge pull request #1398 from aiordache/compose_top 2021-03-08 11:25:46 +01:00
aiordache a7ed600bde Add containers.filter and e2e test
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-08 10:27:24 +01:00
aiordache fef479ad1f update test
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 16:30:52 +01:00
aiordache 34df3caaaf Update error message for Windows
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 15:44:01 +01:00
Guillaume Tardif 80822bde44
Merge pull request #1392 from docker/run_opts
implement -v, -p, --service-ports and --use-aliases on compose run
2021-03-05 14:52:08 +01:00
aiordache 6458b97089 test fix
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 14:48:18 +01:00
aiordache 6f1d88e3bc Fix test and load dockerconfig in the backend
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 14:34:49 +01:00
aiordache d26783c322 Add connection flags to root command
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 14:34:49 +01:00
Nicolas De Loof d08255c4ff
implement -v, -p, --service-ports and --use-aliases on compose run
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-05 14:25:29 +01:00
aiordache 62f24c7086 Add `ignore-push-failures` flag to `compose push`
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 13:39:31 +01:00
aiordache 79af862613 Add `compose top` command
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 12:44:16 +01:00
Guillaume Tardif 5d2e8754df Don’t use context for scan suggest message, use cliconfig.Dir() as in scan plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-05 09:41:04 +01:00
Ulysses Souza 939ace331c Add platform on creating containers
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-04 20:08:41 -03:00
Ulysses Souza a8d45d22cc Take platform in account on compose build
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-04 01:04:49 -03:00
Ulysses Souza ba4a9980e2 Take `platform` in account on pulling the images
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-04 01:03:11 -03:00
Guillaume Tardif 91b39d0772
Merge pull request #1380 from docker/build_args
introduce --build-args option
2021-03-03 18:27:41 +01:00
Nicolas De Loof 08e4222fbb
introduce --build-args option
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-03 16:44:53 +01:00
Ulysses Souza 10d024428c Add --attach-dependencies
This actually makes the service selection
effective and add the flag to disable
the service selection.

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-02 22:27:34 -03:00
Nicolas De loof 12ffdd1405
Merge pull request #1381 from gtardif/fix_up_build
Fix compose up --build not forcing rebuild of present image
2021-03-02 18:57:34 +01:00
Guillaume Tardif 8b6e356af4 Fix compose up --build not forcing rebuild of present image
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-02 18:12:51 +01:00
Nicolas De loof 0037e0755f
Merge pull request #1377 from docker/pull_deps
introduce pull --include-deps
2021-03-02 15:51:38 +01:00
Nicolas De Loof e9c9a1983c
pass timeout to "up" backend implementation
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 15:07:19 +01:00
Nicolas De loof 03bce03028
Merge pull request #1378 from docker/build_pull
support compose build --pull
2021-03-02 10:00:59 +01:00
Nicolas De Loof 6412d88703
introduce build --progress
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 09:34:38 +01:00
Nicolas De Loof 7495b192b8 introduce --always-recreate-deps
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 09:18:24 +01:00
Nicolas De Loof 6f73007265
support compose build --pull
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 09:06:21 +01:00
Nicolas De Loof 7c4c534b36
introduce --renew-anon-volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 08:38:15 +01:00
Nicolas De loof dd843bded8
Merge pull request #1353 from ulyssessouza/project-dir
Fix --project-directory mix with --workdir
2021-03-01 17:58:47 +01:00
Guillaume Tardif f6354e5617
Merge pull request #1351 from gtardif/scan_suggest
Scan suggest message when compose build / compose up
2021-02-26 10:12:14 +01:00
Guillaume Tardif c1373d2e63 Update confirmed scan suggest message
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-26 09:41:18 +01:00
Ulysses Souza bc234bdcdf Fix --project-directory mix with --workdir
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-02-25 17:48:44 -03:00
Guillaume Tardif accc65ae8b Check if scan has already been invoked before suggesting using it
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 10:32:56 +01:00
Guillaume Tardif fa3a08e4fc Check scan plugin is available before suggesting to use it
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif 81acdba670 Allow users to turn off scan suggest with env var
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif 30631eea03 scan message in compose build and compose up
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif 156efb8463 Scan suggest message in docker compose build
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:36 +01:00
Nicolas De loof c53398a422
Merge pull request #1348 from gtardif/compose_ls_all
Add —all option to compose ls, listing non running projects.
2021-02-24 15:17:34 +01:00
Guillaume Tardif cba4f140ae Add —all option to compose ls, listing non running projects.
Added e2e tests to stop, start, pause, unpause, ls —all, ps —all

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-24 13:11:12 +01:00
Guillaume Tardif bc9bd9f880 Moving compose e2e tests in their own files
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-24 10:53:06 +01:00
Ulysses Souza 83cc63c8ae Add service based network_mode
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-02-23 10:13:31 -03:00
Guillaume Tardif ea24e499e6
Merge pull request #1341 from docker/run_opts
introduce a few more `compose run` options
2021-02-23 13:59:30 +01:00
Nicolas De Loof ed17e762cc
introduce a few more `compose run` options
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-23 13:41:50 +01:00
Nicolas De Loof 8054af8011
introduce --no-build option
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-23 10:42:51 +01:00
Nicolas De Loof e362947cb1
introduce pause and unpause commands
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-22 17:08:41 +01:00
Nicolas De Loof 2b0e0f2741
pass service to LogConsumer
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-22 11:40:26 +01:00
Nicolas De loof 32fdd08485
Merge pull request #1323 from docker/timestamp
introduce logs --timestamp
2021-02-18 19:41:05 +01:00
Chris Crone 931767b22d deps: Replace docker/distribution for distribution/distribution
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-02-18 18:24:52 +01:00
Chris Crone a4a3a38dd8 lint: Fix linting errors
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-02-18 17:29:05 +01:00
Nicolas De Loof c25fd5689e
intorude logs --timestamp
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-18 16:50:39 +01:00
Nicolas De Loof f07a4a72b9
introduce --rmi and --volumes option on down
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-17 16:11:35 +01:00
Nicolas De loof 5e7203dbe4
Merge pull request #1306 from aiordache/compose_exec_cmd
Add `compose exec` command
2021-02-16 14:15:48 +01:00
Nicolas De Loof 12a5100b20 reconcide log's wplit_writer implementations
close #1311

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-16 10:59:28 +01:00
Nicolas De Loof 9097d71009 join log stream before we split by line
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-16 10:59:28 +01:00
Nicolas De loof bd9248d074
Merge pull request #1303 from docker/down_timeout
introduce timeout flag on down and stop
2021-02-16 10:59:02 +01:00
aiordache afac025a49 Add `compose exec` command
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-02-16 10:56:00 +01:00
Nicolas De loof 8029db807c
Merge pull request #1301 from docker/color_fix
fix color assignment on status messages
2021-02-16 10:43:16 +01:00
Nicolas De Loof 0b517741a0 introduce --timeout on compose stop|down
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-16 10:21:01 +01:00
Ulysses Souza 6b79a6c096 Add cascade test cleanup with `down`
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-02-15 20:04:59 -03:00
Nicolas De Loof 5cb2533faa
dryrun to collect resources to be removed, then remove
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-15 12:32:44 +01:00
Nicolas De Loof 4fcaa29614
fix color assignment on status messages
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-15 12:29:48 +01:00
Nicolas De Loof 20b83aa237
introduce compose rm command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-15 09:26:52 +01:00
Nicolas De Loof 8533a26929 make color assignment predictable and option to disable prefixes/colors
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-12 17:55:38 +01:00
Nicolas De Loof 4462f12249
revisit `run` implementation as create, attach, start, wait
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-12 17:45:02 +01:00
Nicolas De Loof d56745cba4 detect stopped containers as "Created"
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-12 12:17:17 +01:00
Guillaume Tardif f52bdc54d8
Merge pull request #1281 from gtardif/compose_unittests
More Local Compose unit tests
2021-02-12 12:12:57 +01:00
Guillaume Tardif d720eb6c03 Fix race (parallel update of collection) to remove orphan containers
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-12 10:26:15 +01:00
Guillaume Tardif fbe1ebc054 Fix test name and avoid project name collision between parallel tests,
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-12 09:52:04 +01:00
Guillaume Tardif ac5c422d77 Better debug info if test fail
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-12 09:45:00 +01:00
Guillaume Tardif b4fa7b2fa3 PS unit test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-11 15:53:06 +01:00
Guillaume Tardif 4140196eb0 Add down unit tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-11 15:53:05 +01:00
Guillaume Tardif b8093e668a Kill Unit test mocking docker client API
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-11 15:52:23 +01:00
Guillaume Tardif bf26d056e5 Fix orphans warning when `docker compose run`
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-11 15:34:38 +01:00
Guillaume Tardif c8b708a20b Fix orphans warning when running `docker compose up SERVICE`
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-11 15:33:29 +01:00
Nicolas De Loof 8b90814de6
e2e test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-11 13:26:58 +01:00
Nicolas De Loof d9fe745cc0
avoid use of channels in API for gRPC compatibility
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-11 09:34:08 +01:00
Nicolas De Loof 752edcce65
introduce `--exit-code-from`
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-09 19:17:12 +01:00
Nicolas De Loof a4b003ecfa
pull logs and events better than aggregate events from multiple channels
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-09 17:27:36 +01:00