Guillaume Tardif
adeba9b124
Fix bug not allowing users to run any context command when set to an aws context type.
...
When users have an “aws" context type, we try to exec the command (will execute context ls, context use, etc.) and when it fails because it doesn’t find the aws backend, then display the custom error for aws context type.
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-04 11:01:55 +02:00
Chris Crone
4c6280b0e9
Rename docker/api -> docker/compose-cli
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-21 17:28:39 +02:00
Guillaume Tardif
4c3b563182
ECS context type is not for delegation to Moby !
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-08-21 14:32:46 +02:00
Guillaume Lours
95de770e87
Update or add license header which are not valid
...
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-17 16:55:25 +02:00
Guillaume Tardif
b060d8acfc
Do not display warning if cannot forward signal to child. See https://github.com/docker/pinata/pull/14327
2020-08-13 14:06:52 +02:00
Djordje Lukic
88c405e025
Use buffered channels for signals
2020-08-13 10:34:42 +02:00
Guillaume Tardif
cdd4028788
Fix flaky nil pointer in signal forwarding to child process (see https://github.com/docker/api/runs/949400778 )
2020-08-06 10:23:12 +02:00
Guillaume Tardif
29fe26620a
Stop forwarding signals to child process when the child terminates
2020-08-05 15:05:32 +02:00
Guillaume Tardif
05a8582126
Forward all signals to child process
2020-08-05 15:05:32 +02:00
aiordache
d1b8bcb2c7
fix signal passing to mobycli
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-05 15:05:32 +02:00
Chris Crone
f8ce7a4780
cli: Move to gotest.tools
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-04 14:03:24 +02:00
aiordache
5f7c284d58
update delegation test to check all context types
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:40:44 +02:00
aiordache
87245ef727
rename packages ( amazon to ecs and azure to aci )
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:34:34 +02:00
aiordache
cfa7406d73
fix tests
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:34:34 +02:00
aiordache
355295696f
Create aws context
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:34:34 +02:00
Guillaume Tardif
eda438aaed
Added basic support for service principal login, run ACI e2e tests with it
2020-06-29 20:35:23 +02:00
Djordje Lukic
98976e4cb4
Cleanup entrypoint
...
* use the `fatal` function when we can
* rename moby.ExecRegardlessContext to Exec
2020-06-26 10:23:37 +02:00
Guillaume Tardif
839b1b0b44
Delegate to Moby CLI, to allow executing ecs CLI plugin if user has switched to the AWS context (created by the plugin)
2020-06-25 11:49:28 +02:00
Guillaume Tardif
38d4f8d25a
Shell out to Moby cli if user uses -H, regardless of context set. Moby cli will refuse both options (context & host) to be set at the same time
2020-06-23 12:00:46 +02:00
Djordje Lukic
ad72c866cc
Add license headers
2020-06-18 16:48:03 +02:00
Guillaume Tardif
ab3cd0fec1
Renamed ExecIfDefaultCtxType for more explicit behaviour
2020-06-18 09:29:01 +02:00
Guillaume Tardif
3981244701
Fix bug where we shell out to Moby cli only if context == default. We must shell out to Moby cli for any context of type “Moby”, not only the default context.
2020-06-18 09:25:28 +02:00
Guillaume Tardif
fe57e4c159
Fix a bug where calling login, context inspect did not do anything if not on default context. These command will shell out to Moby cli regardless of current context
2020-06-18 09:25:28 +02:00
Guillaume Tardif
bbcdad39d5
Renamed docker-classic to “com.docker.com”.
2020-06-17 17:57:53 +02:00