Commit Graph

1950 Commits

Author SHA1 Message Date
Guillaume Tardif db73c928f3 Ensure image exist for run service
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif dc211b178a Fixed race when down with multiple containers for one service
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif 32d5644937 Pass reader Writer as options to backend, remove hardcoded os.Stdout
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:06 +01:00
Guillaume Tardif bad0d41d90 Auto-remove using container config
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:19 +01:00
Guillaume Tardif d2cfffafb4 Attach to container using compose attach
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:19 +01:00
Guillaume Tardif 76f36a69c6 Reusing existing Create() and Start() API
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:18 +01:00
Guillaume Tardif 27dc2e5be1 Reuse Create(Project) and Start(Project)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 1e6c4263cb Also test running bash commands with `run /bin/sh -c …`, better test on slug label
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 8eb9733914 No need to support service `container_name` in this PR, will do separately, minor cleanup
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 8259604074 Simplify command setup
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 0e319ae65a Slightly better tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif d127cac6d4 Ensure images exist before starting progress display for network / volumes, otherwise progress display is all mixed up
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 53ee1418af Do not change root flags for all commands
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 7bed2343e6 Remove not implemented options
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif b289138ca9 No need to filter services again in backend, filter is done by cli command. Added e2e test, labels one-off and slug
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 370781e95e Support option —workingdir, -f, no need to check backend support, unimplemented error is returned by backbends.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 215f50166a Remove comment
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
aiordache 412385c495 Add `compose run` command
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-12-18 09:58:55 +01:00
Guillaume Tardif a17e397df3
Merge pull request #1071 from docker/local_ecs_moby
use compose-in-go code to implement local ECS simulation context
2020-12-17 18:34:48 +01:00
Nicolas De loof f6f9241d12
Merge pull request #1076 from gtardif/fix_metrics_flakyness
Fix metrics flakyness
2020-12-17 17:48:38 +01:00
Guillaume Tardif 57fbd81772 Make sure mock metrics server is started before testing metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 17:15:48 +01:00
Guillaume Tardif 5ba0522271 Wait for mock metrics server to have started before running commands
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 16:40:12 +01:00
Guillaume Tardif 9138a3c76b removed wait that is not the root cause for metrics flakyness
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 16:37:20 +01:00
Nicolas De Loof e2c55c2122
e2e test for local `Log` command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 11:48:58 +01:00
Nicolas De Loof eda6a59379
introduce options struct in the API
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 11:10:57 +01:00
Nicolas De Loof 855a879a6a
Introduce `removeOrphans` to cleanup injected AWS simulation container
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 10:46:17 +01:00
Nicolas De Loof db5467ce22
Use local compose implementation for local ecs simulation context
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 10:46:16 +01:00
Nicolas De loof 76ba85fe5d
Merge pull request #1073 from docker/logs_service
allow to collect logs for a subset of project services
2020-12-17 10:43:16 +01:00
Nicolas De Loof 056dfb95bc
allow to collect logs for a subset of project services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 10:32:46 +01:00
Nicolas De loof ba47b3d9d2
Merge pull request #1072 from docker/vpc-arn
Support user passing an ARN for x-aws-vpc
2020-12-16 15:44:11 +01:00
Djordje Lukic 8c5842392d
Merge pull request #1066 from chris-crone/buildx-0.5.1
Bump docker and buildx
2020-12-16 13:58:48 +01:00
Chris Crone 65561c085a deps: Bump docker and buildx vendoring
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-16 10:57:42 +01:00
Nicolas De Loof 06742e3c35
Support user passing an ARN for x-aws-vpc
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-16 10:37:16 +01:00
Nicolas De loof e983f3eda4
Merge pull request #1068 from docker/no_compose_local_windows_e2e
Do not run compose local e2e tests on windows GHA nodes for now
2020-12-15 17:19:59 +01:00
Guillaume Tardif f8c750277f Do not run compose local e2e tests on windows GHA nodes for now (buildkit failing with `failed to mount C:\ProgramData\docker\tmp\buildkit-mount370086869: [{Type:bind Source:C:\ProgramData\docker\windowsfilter\y3952h88q6ikevun9li41hjcb Options:[rbind ro]}]: invalid windows mount type: 'bind’`).
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 16:21:42 +01:00
Guillaume Tardif ebe7248a3d
Merge pull request #1067 from docker/more_aci_flakyness
Avoiding more ACI flakyness
2020-12-15 16:19:06 +01:00
Guillaume Tardif d0723dcb3d Avoiding more ACI flakyness, some fixed in a804136b1c (fixing `docker prune --dry-run --force` , exact same issue here with `docker prune --force`)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 15:44:53 +01:00
Guillaume Tardif 0a0bc53bae
Merge pull request #1065 from gtardif/ci-compose-e2e
Ensure local compose E2E are run in CI.
2020-12-15 15:33:02 +01:00
Guillaume Tardif 6d34f28beb Ensure local compose E2E are run in CI.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 15:24:02 +01:00
Nicolas De loof 42acaea3c9
Merge pull request #1064 from docker/public_subnets
Only consider public subnets
2020-12-15 14:38:55 +01:00
Nicolas De Loof b9a3025865
Only consider public subnets
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-15 12:57:24 +01:00
Nicolas De loof 10a19b1159
Merge pull request #1062 from gtardif/fix_cli_moby_command_detect
Make Moby command detection (based on help output) more robust.
2020-12-15 12:38:46 +01:00
Guillaume Tardif f55823b70f Make Moby command detection (based on help output) more robust. It seems some tabs have been replaced by spaces in CLI 20.10. Covered with e2e test TestUnsupportedCommand.
We need to install docker CLI ourselves in Github actions nodes.

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 12:32:13 +01:00
Nicolas De loof a87c5838a2
Merge pull request #1058 from ndeloof/version
Parse --version and forward to docker/cli
2020-12-15 09:59:33 +01:00
Nicolas De Loof 7a2e041524
Parse --version and forward to docker/cli
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-14 15:16:22 +01:00
Nicolas De loof 99de963dfc
Merge pull request #1053 from docker/aci_udp_ports
ACI: Allow setting protocol when publishing ports
2020-12-14 09:56:47 +01:00
Guillaume Tardif 016b04eb97
Merge pull request #1048 from chris-crone/no-export
Do not unnecessarily export images
2020-12-14 09:13:26 +01:00
Guillaume Tardif cbbefa3581
Merge pull request #1052 from docker/test-compose-pull
Add test for compose pull
2020-12-11 17:25:26 +01:00
Djordje Lukic 331a60bb62 Add test for compose pull
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-11 16:54:19 +01:00
Guillaume Tardif 5f730436d4 ACI: Allow setting protocol when publishing ports
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-11 16:45:48 +01:00