Commit Graph

48 Commits

Author SHA1 Message Date
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 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 2484dfa5b5
clearer error message and fix typo
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-04 08:02:22 +01:00
Nicolas De Loof 7d0e1dfc3c introduce compose logs --tail and --follow options
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-29 15:10:56 +01:00
Nicolas De Loof f33eff5903
introduce `--filter` option on `compose ls`
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-22 10:27:56 +01:00
Guillaume Tardif f1ac6d4fdc Move errdefs => api/errdefs
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-15 16:54:18 +01:00
Nicolas De Loof 075f54713e
Use LoadBalancer's VPC and subnet when x-aws-loadbalancer is set
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-12 16:02:35 +01:00
Nicolas De Loof 336ea9a7d3
s3 bucket name must be unique. Create bucket with uuid name
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-12 11:37:21 +01:00
Nicolas De Loof 59d17a45a0
handle API pagination
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-07 10:32:15 +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 446008a4b6
on ACI container ID is `project_service` and name is `service`
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-09 14:39:10 +01:00
Nicolas De Loof 1d859dc807
`Ps` return ContainerSummary, not Services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-09 10:33:51 +01:00
Nicolas De Loof 71ecbda48f
Publish on s3 if payload is > API limit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-10 11:03:00 +01:00
Nicolas De Loof 10a384d35b
Pass region to create s3 bucket into
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-10 08:40:02 +01:00
Nicolas De Loof 3f184f7552
store cloudformation template on s3 to workaround API limit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-10 08:40:02 +01:00
Nicolas De Loof e99a8b54f8
Detect changeset creation failure when there's no changet
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-05 13:39:52 +01:00
Nicolas De Loof a0addb7dcb
DescribeSubnets uses pagination
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-03 10:45:40 +01:00
Nicolas De Loof de96a0c1d0
CLI command to manage ECS volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-20 16:52:50 +02:00
Nicolas De loof 75a5a0f205
Merge pull request #812 from docker/barbarian
Introduce use of EFS Access Point to mount filesystems as volumes
2020-10-20 16:23:50 +02:00
Nicolas De Loof 6fa30284d9
Introduce use of EFS Access Point to mount filesystems as volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-20 10:52:33 +02:00
aiordache 8f31ad59be Refactor secrets
- create secrets from files
  - update Secret structure

Signed-off-by: aiordache <anca.iordache@docker.com>
2020-10-19 11:33:55 +02:00
Nicolas De Loof 4760ae334d
Store external cluster as metadata
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-16 13:42:20 +02:00
Nicolas De Loof 5d5765173e
Create volume for compose app
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-13 14:18:01 +02:00
Nicolas De Loof e903326e1a
Check external filesystems exist on compose up
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-13 10:43:01 +02:00
Nicolas De loof 45bb05ee19
Merge pull request #764 from docker/test_with_mock
More unit tests with aws-sdk behind an interface + mocks
2020-10-12 21:21:38 +02:00
Nicolas De Loof 432ce79e2c
More unig tests with aws-sdk behind an interface + mocks
Fix use of existing SecurityGroup

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-12 16:51:05 +02:00
Ulysses Souza 10632b008b Add version to UserAgent on ACI
This also refactors the Version insertion to make it global

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-10-12 09:15:32 +02:00
aiordache c15d05f7f4 refactor task failure detection
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-10-05 19:37:13 +02:00
aiordache d3effd2ead Detect task failures
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-10-05 16:55:35 +02:00
Nicolas De Loof eab140ee71
delete CapacityProvider before we invoke DeleteStack
this is a workaround for CloudFormation issue to manage CapacityProvider <-> Cluster reverse dependency

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-10-02 18:22:13 +02:00
Nicolas De Loof d5e0ec7aa6
`parse` to return awsResources then convert into CF template
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-29 08:31:11 +02:00
Nicolas De Loof 7034254911
introduce awsResources to replace CloudFormation parameters
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-24 19:34:41 +02:00
Nicolas De Loof 2cfaf69546
Distinguish limits for Fargate and EC2
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-23 09:40:07 +02:00
Nicolas De Loof 109ba96743
Run on EC2 when a service require GPU
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-23 09:31:16 +02:00
Chris Crone d154c41586 Update copyright
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-09-22 12:13:00 +02:00
Nicolas De Loof 30de56f64f
Introduce support for external EFS volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-15 13:03:53 +02:00
Nicolas De Loof d649a5d92c
Use a custom user-agent so AWS can track usage
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-09-10 16:51:20 +02:00
aiordache 66c92595e5 list stacks by project name for ecs
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-09-07 14:59:02 +02:00
aiordache 799b799f30 Implement `compose ls` for ACI
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-09-07 14:39:49 +02:00
Guillaume Tardif d06aa2827f Move containers, compose, secrets to /api
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-07 13:22:08 +02:00
aiordache 02be463fd7 Add `compose ls` command for ECS
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-09-04 13:20:11 +02:00
Nicolas De Loof cd27fcb9c8
Check VPC has DNS resolution enabled
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-28 10:59:48 +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
Nicolas De Loof 1b43e0c1d6
Poll ECS logs until context is canceled
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-21 16:03:49 +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 55a21122d0
Copytight header
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-18 15:34:40 +02:00
Nicolas De Loof 6e6a11aa73
Introduce Secrets API
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-18 09:43:15 +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