Guillaume Tardif
69ce33321f
Merge pull request #528 from docker/secrets
...
Secrets
2020-08-21 14:52:36 +02:00
Nicolas De Loof
32adf3e4e6
Introduce `secret` management command and ECS implementation
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-21 13:56:52 +02:00
Guillaume Tardif
bff1fa1872
Merge pull request #525 from docker/workingdir
...
workdir default value is defined by compose file
2020-08-21 10:22:31 +02:00
Nicolas De Loof
838937c907
workdir default value is defined by compose file
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-20 15:18:03 +02:00
Djordje Lukic
635ecd7b99
Return a default implementation when nil
...
Some backends can decide not to implement a whole set of APIs (compose
for example), we now return a default implementation that returns a
`errdefs.ErrNotImplemented` for each action making it easy for the cli
to print a helpful error message. We also remove any possible nil
panics.
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-08-20 14:32:03 +02:00
Guillaume Tardif
2df4112913
Merge pull request #511 from docker/ecs-e2e
...
First ECS E2E test
2020-08-20 10:57:23 +02:00
Guillaume Tardif
9b0b1129a6
Build without ecs build flag, not required anymore. Fix context create ecs command not build
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-08-20 10:11:23 +02:00
aiordache
6657dd2774
Add error message for aws context
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-19 18:22:07 +02:00
aiordache
44b2b8b21d
integrate functionality from ecs-plugin
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-19 17:49:21 +02:00
aiordache
fe0cc0d2cc
Add progress.Run to down cmd
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-19 16:19:21 +02:00
Nicolas De Loof
ec4615ae57
Apply linter recommendations
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-19 08:16:19 +02:00
Nicolas De Loof
2791542fea
Merge remote-tracking branch 'origin/main' into ecs
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-18 10:36:17 +02:00
Nicolas De Loof
cfbd963c3d
Adjust commands to latest compose-go
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-18 10:01:32 +02:00
Nicolas De Loof
e02d8d549b
Make ECS integration a compose-cli backend
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-17 21:30:49 +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
Djordje Lukic
aa8bf1daaa
Add test for ACI start
2020-08-12 14:50:47 +02:00
Djordje Lukic
1a3182fb7f
Implement `docker start` for ACI
2020-08-12 14:50:47 +02:00
Guillaume Tardif
ee062e8333
ACI Stop implementation
2020-08-12 10:32:35 +02:00
Djordje Lukic
611667d252
Fix linting
2020-08-11 17:36:54 +02:00
Sebastiaan van Stijn
c862d7821d
Remove custom multierrors package
...
The hashicorp/go-multierror package provides functionality to do
this. Replacing the custom package in favor of those (at the cost
of some small duplication).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-08-11 17:24:51 +02:00
Djordje Lukic
80c1b2246b
Merge pull request #457 from docker/feat-aci-force-rm
...
Add --force to rm on ACI
2020-08-11 16:42:49 +02:00
Djordje Lukic
093a69136f
Add --force to rm on ACI
...
If a container is running the user must force the removal of the
container.
2020-08-11 16:30:42 +02:00
Guillaume Tardif
6ff20cf104
more concise validation
...
Co-authored-by: Djordje Lukic <djordje.lukic@docker.com>
2020-08-11 13:45:46 +02:00
Guillaume Tardif
ec5f4e9202
Add options to `docker login azure` to support Service Principal login. Use it in E2E tests
2020-08-11 12:11:51 +02:00
aiordache
00f17534a3
error check
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-06 18:13:17 +02:00
aiordache
64c517f375
remove unused parameter
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-06 18:13:17 +02:00
aiordache
46e58a28d0
Add ps and logs to compose API
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-06 18:13:17 +02:00
Anca Iordache
4c3c219518
Merge pull request #411 from docker/enable_ecs
...
Enable ecs backend
2020-08-06 12:17:00 +02:00
aiordache
42a5dfc0d2
rename runCompose() to checkComposeSupport()
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-06 12:02:11 +02:00
aiordache
bb3500d77b
check with client if context is supported (has a backend)
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-08-06 11:49:54 +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
Guillaume Tardif
f442eafe0b
Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage.
2020-08-04 17:11:21 +02:00
Ulysses Souza
a2c2d6aa5d
Add Restart Policy support when running single container
2020-08-04 16:57:58 +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
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
2471e51b39
set build tag for the ecs context and backend
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:34:34 +02:00
aiordache
fb63373a9b
remove cluster property from aws context
...
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
aiordache
648f0139df
add e2e test for compose up on default context
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-29 17:33:23 +02:00
aiordache
5a26b25709
handle compose on all context types
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-29 11:58:09 +02:00
Christopher Crone
d1a929eb7f
cli: Fix logout when specifying a registry
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-17 16:29:12 +02:00
Christopher Crone
af0417c758
cli: Refactor Azure logout
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-17 16:23:15 +02:00
Djordje Lukic
84dbd1467d
Move the struct for creating and aci context to azure package
2020-07-13 11:05:19 +02:00
Guillaume Tardif
43b54ef75a
Also remove map[string]string for azure login (tenantId param)
2020-07-10 16:55:44 +02:00
Guillaume Tardif
97d408d25d
Replaced map[string] string by existing aciCreateOpts struct for context create
2020-07-10 16:39:09 +02:00
Guillaume Tardif
c36b64c10b
Fixing subscription-id parameter not passed to backend...
2020-07-10 15:27:41 +02:00
Guillaume Tardif
1fbdbbbbe3
Merge pull request #381 from docker/fix-logs-windows
...
Get the real width of the terminal
2020-07-10 13:06:07 +02:00
Guillaume Tardif
52c2d09eae
Merge pull request #376 from docker/logout
...
Implement azure logout
2020-07-10 09:48:39 +02:00
Djordje Lukic
ef2d304762
Allow non-interactive exec on ACI
...
If the request is for a non-interactive exec we don't attach the stdin
when executing.
2020-07-09 11:47:22 +02:00
Djordje Lukic
e6c115dc17
Get the real width of the terminal
...
github.com/buger/goterm always returns 80 on windows...
2020-07-09 10:50:48 +02:00