Commit Graph

1877 Commits

Author SHA1 Message Date
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
Guillaume Tardif 0ef42f7bcb Fix converting run health check options
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-13 11:49:44 +01:00
Guillaume Tardif 91e5d178d2 Fix ports & Host config not being initialised in inspect view, fix E2E tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-12 18:00:22 +01:00
Ulysses Souza 49759af15c Add container inspect view
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-11-12 17:16:54 +01:00
Nicolas De loof aa09ecb1f8
Merge pull request #905 from docker/fix_aci_potential_nil_panic
Use ACI .IsHttpStatus() rather than accessing .StatusCode directly
2020-11-12 15:12:14 +01:00
Guillaume Tardif 0d74298eed Use ACI .IsHttpStatus() rather than accessing .StatusCode directly, that might lead to nil pointer panic
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-12 15:01:18 +01:00
Nicolas De loof 3e0fadc78b
Merge pull request #896 from docker/aci_health_e2e
Deploy e2e compose stack with health check and validate it restarts failed container
2020-11-12 12:17:48 +01:00
Nicolas De loof 919db3f619
Merge pull request #904 from docker/reservation
Use reservations if user has not set limits
2020-11-12 12:01:00 +01:00
Guillaume Tardif 110106b1b7
Merge pull request #899 from docker/aci_volume_error_message
Specific error message when specifying path as a volume source
2020-11-12 11:45:49 +01:00
Guillaume Tardif 624308134f Specific error message when specifying path as a volume source. Removed volume reference validation already done at https://github.com/compose-spec/compose-go/blob/5afecaa4cb/loader/validate.go#L38
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-12 11:38:40 +01:00
Nicolas De Loof 8438eee612
Use reservations if user has not set limits
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-12 10:57:34 +01:00
Nicolas De loof 12d7ab55d6
Merge pull request #903 from docker/ecs_mapping 2020-11-12 10:29:57 +01:00
Nicolas De Loof 5ee75c70c9
Document ECS supported compose attributes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-12 10:24:12 +01:00
Guillaume Tardif 949f0ce62e
Merge pull request #897 from docker/volume_conflict
Don't panic on bind mount
2020-11-10 17:09:53 +01:00