Commit Graph

1740 Commits

Author SHA1 Message Date
Guillaume Tardif 9f594abd85 Local compose ls implementation
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-19 09:48:54 +01:00
Guillaume Tardif fbf5b0a7f9
Merge pull request #923 from gtardif/lint_local
Lint local backend
2020-11-18 17:33:51 +01:00
Guillaume Tardif 2020131105 Add local label automatically
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-18 17:23:48 +01:00
Guillaume Tardif 51142827e7 Fix linter errors
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-18 17:18:41 +01:00
Guillaume Tardif 3940b98da5 Lint packages behind feature flag : local, e2e
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-18 17:18:15 +01:00
Guillaume Tardif 181b47fcb5
Merge pull request #920 from gtardif/fix_tabs
Fix tabs vs spaces
2020-11-17 18:31:20 +01:00
Guillaume Tardif fff94aeb6b Fix tabs vs spaces
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-17 18:24:54 +01:00
Nicolas De loof bbcf445f1f
Merge pull request #919 from docker/compose-in-go 2020-11-17 16:23:42 +01:00
Nicolas De Loof eb60bbb74f
define const for labels
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 15:56:39 +01:00
Nicolas De Loof 2278370ffa
Handle service scale with container numbering
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 15:15:27 +01:00
Guillaume Tardif da99ad40d5 Fix logs (concurrent access to container.ID, logs was displaying the first container logs for every container)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-17 15:13:36 +01:00
Nicolas De Loof a701fd7601
Negociate API version with docker engine
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 13:44:51 +01:00
Nicolas De loof 38d2dd9b41
Merge pull request #907 from docker/aci_healthcheck_threshold 2020-11-17 13:35:01 +01:00
Nicolas De Loof 46cbb908fe
Target docker/docker 19.03 branch (api 1.40)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 13:28:58 +01:00
Nicolas De loof f68495fcfb
Merge pull request #918 from docker/fix914
Use json to marshall ecs-local enhanced docker-compose config
2020-11-17 12:01:55 +01:00
Nicolas De loof ebd81a2144
Merge pull request #895 from mreferre/main
Added IAM roles/policies examples and re-ordered some of the text
2020-11-17 11:59:29 +01:00
Nicolas De Loof 9ec075baff
document public types
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:57:38 +01:00
Nicolas De Loof 6346db1d6f
Move reconciliation logic into convergence.go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:31:14 +01:00
Nicolas De Loof 8310bb2a91
Create services in dependency order
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:31:14 +01:00
Djordje Lukic 744aebc3fd
"Already exists" also means the pull finished
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-17 11:31:14 +01:00
Djordje Lukic b0ee6d285a
Update docker/docker to be able to run this on a Mac, use goroutines when starting a stack
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-17 11:31:13 +01:00
Nicolas De Loof 9fdf69ea9c
Handle container (re)create/(re)start on compose up
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:29:12 +01:00
Nicolas De Loof 0d33e5cdcc
report docker resources creation in progress
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:28:50 +01:00
Nicolas De Loof 7944a1b94f
implement image pull on `compose up` with progress
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:28:49 +01:00
Nicolas De Loof 74de423cc3
reuse ECS logConsumer to implement formatted compose log output
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:28:08 +01:00
Nicolas De Loof 3f52508efe
Skeletton implementation for compose commands
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:28:08 +01:00
Nicolas De Loof 85ec312461
convert compose model into moby API types to prepare "up" local implementation
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:28:08 +01:00
Chris Crone 367fbf35c0
Merge pull request #916 from gtardif/fix_compose_protos
Fix proto message names for ComposeStacks() input / output ; same for ComposeServices()
2020-11-17 11:02:46 +01:00
Nicolas De Loof 976eacd198
pass json encoded compose file to docker-compose to prevent yaml format mismatch
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-17 11:02:31 +01:00
Guillaume Tardif 35bc1d096e Fix proto message names for ComposeStacks() input / output ; same for ComposeServices()
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-17 10:04:53 +01:00
Guillaume Tardif bc966daf34
Merge pull request #912 from docker/compose-api
Compose api
2020-11-17 09:51:13 +01:00
Guillaume Tardif 08cf86bbff Rename compose List() => Stacks to avoid name collision, and remove confusion with compose ps, also renamed Services()
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-17 09:45:05 +01:00
Guillaume Tardif 40e6655c2e
Merge pull request #893 from docker/add-view-inspect
Add container inspect view
2020-11-17 09:34:07 +01:00
Nicolas De loof a05df9490b
Merge pull request #913 from docker/gpu_spec
Add support for gpu devices reservation
2020-11-16 17:36:04 +01:00
Nicolas De loof 564b5fb793
Merge pull request #915 from docker/aws_creds
Don't mess with exiting .aws/credentials
2020-11-16 17:34:50 +01:00
Guillaume Tardif 4a975a5b0b Adding compose ps API
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-16 16:38:39 +01:00
Guillaume Tardif 631c75051d Adding compose ls API
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-16 14:58:28 +01:00
Nicolas De Loof cb808dec31
Don't mess with exiting .aws/credentials
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-16 14:51:05 +01:00
Nicolas De Loof efd0f2b9ec
Add support for gpu devices reservation
Adopt https://github.com/compose-spec/compose-spec/pull/100

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-16 14:24:25 +01:00
Guillaume Tardif b4e8c28ecf Add compose project name in gRPC response for up and down
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-16 13:42:59 +01:00
Guillaume Tardif 5906677a2c Add gRPC proxy for `compose down`
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-16 12:19:59 +01:00
Guillaume Tardif 5abc68ebdd Add compose service, run `compose up` through API
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-16 12:11:52 +01:00
Guillaume Tardif 0ae42dea04
Merge pull request #906 from gtardif/help_metrics
Collect metrics --help flag
2020-11-13 15:10:26 +01:00
Guillaume Tardif 486e7b8f87 Also log help commands (no flag)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 14:29:08 +01:00
Guillaume Tardif 3d18eda869 Do not specify successThreshold, from MSFT : defaults to 1 and cannot be changed, related to Kube healthchecks: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#probe-v1-core
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 14:14:42 +01:00
Guillaume Tardif a6823c1092 Fix run health check doc
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 14:14:41 +01:00
Guillaume Tardif 575307d8af Fix run default value for health check retries
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 14:14:41 +01:00
Guillaume Tardif b238232a77 Reorder `--help` flag always first in metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 14:06:56 +01:00
Guillaume Tardif c1fe338ac7 Collect metrics --help flag
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 13:29:28 +01:00
Massimo Re Ferre bbaac2048c Added IAM roles/policies examples and re-ordered some of the text
Signed-off-by: Massimo Re Ferre <massimo@it20.info>
2020-11-13 13:14:53 +01:00