Commit Graph

1790 Commits

Author SHA1 Message Date
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
Guillaume Tardif c67e4f6e50
Merge pull request #898 from gtardif/aci_healthcheck_doc
Updated health check docs
2020-11-10 17:07:42 +01:00
Guillaume Tardif a0bd23ade9 Apply suggestions from code review
Co-authored-by: Chris Crone <christopher.crone@docker.com>

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-10 17:07:13 +01:00
Nicolas De Loof 8e847bfd9a
Include volume name in PolicyName to disambiguate
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-10 15:47:16 +01:00
Nicolas De Loof 06fd442a53
Don't panic on bind mount
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-10 15:47:04 +01:00
Nicolas De loof 16c3223623
Merge pull request #869 from docker/s3
publish Cloudformation template on s3
2020-11-10 15:45:31 +01:00
Guillaume Tardif ef5e78dc14 Updated health check docs
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-10 15:37:07 +01:00
Guillaume Tardif 1cc0ccb189
Merge pull request #892 from docker/fix_log_stream_end
Avoid nil pointer when reading logs of a just terminated container.
2020-11-10 14:06:51 +01:00
Guillaume Tardif 2ac61a0f7f Deploy e2e compose stack with health check and validate it restarts failed container
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-10 14:04:58 +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
Guillaume Tardif 40334d570a Avoid nil pointer when reading logs of a just terminated container.
Hit this when following logs of a container restarted with a health check: 
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x168771e]

goroutine 1 [running]:
github.com/docker/compose-cli/aci.getACIContainerLogs(0x2d85260, 0xc000526c60, 0xc0001465a0, 0x24, 0xc0004f4da0, 0xa, 0xc0004f4db0, 0x7, 0x7ffeefbffab2, 0xb, ...)
	github.com/docker/compose-cli/aci/aci.go:285 +0x1fe
github.com/docker/compose-cli/aci.streamLogs(0x2d85260, 0xc000526c60, 0xc0001465a0, 0x24, 0xc0004f4da0, 0xa, 0xc0004f4db0, 0x7, 0x7ffeefbffab2, 0xb, ...)
	github.com/docker/compose-cli/aci/aci.go:297 +0x2e5
```

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-09 18:19:31 +01:00
Nicolas De loof 2b8fa9934e
Merge pull request #889 from gtardif/run_restart_flags_move
Minor refactoring: Move list of run specific flags where it’s used
2020-11-09 10:25:50 +01:00
Guillaume Tardif cfa090459b Move list of run specific flags where it’s used
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-06 15:38:50 +01:00
Guillaume Tardif 6a9d7c1371
Merge pull request #888 from docker/ecs_get_timeout
ECS E2E timeout update due to flakiness in CI
2020-11-06 14:47:12 +01:00
Guillaume Tardif 0a9373cbc2 ECS E2E timeout update due to flakiness in CI
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-06 14:36:35 +01:00
Guillaume Tardif 5c04e84e49
Merge pull request #882 from docker/yaml
Marshall cloudformation template as yaml
2020-11-06 13:51:12 +01:00
Guillaume Tardif af1dae52eb
Merge pull request #845 from docker/add-aci-healthcheck
Add Healthchecks to ACI
2020-11-06 13:47:33 +01:00
Guillaume Tardif 37737c3887 Do not send zero values in LivenessProbe, blocking deployments in some cases
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-06 12:21:12 +01:00
Ulysses Souza f6509ac814 Add Healthchecks to ACI
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-11-06 12:21:12 +01:00
Guillaume Tardif 5162982edc
Merge pull request #887 from docker/restart-policy-map
Remap restart policies for command run
2020-11-06 11:29:09 +01:00
Ulysses Souza 7aee922b35 Remap restart policies for command run
This adds 'no' and 'always' as options.

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-11-06 10:37:53 +01:00
Guillaume Tardif c1ee51f31e
Merge pull request #884 from docker/win_fix_execute_working_dir
Windows: do not resolve files in current working dir if CWD is not explicitly in PATH.
2020-11-05 18:05:21 +01:00
Guillaume Tardif 66a1263342 No specific case for windows, always resolve binary name before executing command
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-05 17:38:03 +01:00
Guillaume Tardif 41a1553dab No specific case for windows, always resolve binary name before executing command
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-05 17:31:26 +01:00
Guillaume Tardif 3936826673 Keep original license in windows lp_windows.go
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-05 17:12:03 +01:00
Guillaume Tardif 5a8eb000f6
Merge pull request #880 from gtardif/api_context_ls_endpoint
Add context details in API context ls
2020-11-05 17:08:32 +01:00
guillaume.tardif 4489f39e5d duplicate windows os/exec.LookPath() and do not resolve files in current working dir if CWD is not explicitly in PATH.
Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
2020-11-05 16:43:17 +01:00
Nicolas De loof 3afc1cd43d
Merge pull request #867 from docker/local-improvements 2020-11-05 14:40:37 +01:00
Nicolas De loof c6fc0e116f
Merge pull request #879 from docker/acceskey_file
Flag to import access key & secret from file
2020-11-05 14:08:51 +01:00
Nicolas De loof ba0d7c61f1
Merge pull request #883 from docker/no_changes 2020-11-05 14:06:41 +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
Guillaume Tardif 2121cc5ca6
Merge pull request #878 from gtardif/remove_obsolete_hidden_json_flag
Remove obsolete flag `docker context ls --json` (that was marked hidden)
2020-11-05 13:38:12 +01:00
Guillaume Tardif 0720767d1e Adding unit test on context conversion
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-05 12:42:58 +01:00
Nicolas De Loof cb02622318
Marshall cloudformation template as yaml
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-05 11:01:32 +01:00
Guillaume Tardif 6cdcc7cb3e Add context details in API context ls: docker endpoint host, ACI region, resource group, subscription id, ECS profile. Also added context description
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-04 17:39:15 +01:00
Nicolas De Loof 44c58e7806
Flag to import access key & secret from file
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-04 17:20:10 +01:00