339 Commits

Author SHA1 Message Date
Guillaume Tardif
8ab3149f45 Network names and volume names don’t need anymore to be re-adapted (and prefixed with project name) after loaded from compose-go
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-14 10:07:29 +01:00
Guillaume Tardif
48421622c0 Move check that container exited after inspecting container, hopefully this will fix flakyness ont his test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-12 17:26:27 +01:00
Guillaume Tardif
010c4be6b2 Support container_name in ACI and add network alias in dns sidecar.
(Note container_name is used in several MSFT examples)

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-12 15:44:37 +01:00
Guillaume Tardif
3a06e1fde0 Do not fil on first error on ACI restart, allow trying a second time
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-11 11:15:17 +01:00
Guillaume Tardif
f3c017f502 Trying to address more ACI flakyness, on container restart
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 11:17:55 +01:00
Guillaume Tardif
2f4a84baff Fixed assertion after retry due to ACI flakyness on prune
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 11:17:55 +01:00
Guillaume Tardif
246b763874 Remove unnecessary retry in ECS secrets test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 10:10:36 +01:00
Nicolas De loof
e63dc29b9f
Merge pull request #1098 from gtardif/debug_info_flaky_ecs_tests
Fix ECS flaky test and add bettre debug info in assertions
2021-01-05 17:46:12 +01:00
Guillaume Tardif
e98a790ce9 Fix ECS flaky test and add bettre debug info in assertions
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-05 17:25:26 +01:00
Guillaume Tardif
1939047fe6 Add backend-metadata command (hidden) for CLI backend
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-05 16:36:51 +01:00
Guillaume Tardif
3714ab7d41 Attaching container logs
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif
1e6c4263cb Also test running bash commands with run /bin/sh -c …, better test on slug label
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif
0e319ae65a Slightly better tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif
b289138ca9 No need to filter services again in backend, filter is done by cli command. Added e2e test, labels one-off and slug
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif
a17e397df3
Merge pull request #1071 from docker/local_ecs_moby
use compose-in-go code to implement local ECS simulation context
2020-12-17 18:34:48 +01:00
Guillaume Tardif
57fbd81772 Make sure mock metrics server is started before testing metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 17:15:48 +01:00
Guillaume Tardif
5ba0522271 Wait for mock metrics server to have started before running commands
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 16:40:12 +01:00
Guillaume Tardif
9138a3c76b removed wait that is not the root cause for metrics flakyness
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-17 16:37:20 +01:00
Nicolas De Loof
e2c55c2122
e2e test for local Log command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-17 11:48:58 +01:00
Guillaume Tardif
d0723dcb3d Avoiding more ACI flakyness, some fixed in a804136b1c395f3a7d958d2516c8eec45b126ce7 (fixing docker prune --dry-run --force , exact same issue here with docker prune --force)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 15:44:53 +01:00
Guillaume Tardif
6d34f28beb Ensure local compose E2E are run in CI.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-15 15:24:02 +01:00
Djordje Lukic
331a60bb62 Add test for compose pull
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-11 16:54:19 +01:00
Guillaume Tardif
cf378834e5 No rebuild on compose up if image already exists by default, added first use of compose pull_policy and compose up --build to allow to force rebuild.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-10 18:38:16 +01:00
Nicolas De loof
50d434078d
Merge pull request #1037 from gtardif/fix_aci_flakyness
Trying to fix ACI flakyness on docker prune --force
2020-12-10 10:08:34 +01:00
Guillaume Tardif
15d2284e64
Merge pull request #1039 from gtardif/compose_build_e2e
Adding compose build e2e test
2020-12-10 10:01:26 +01:00
Guillaume Tardif
c806b75940 Adding compose build e2e test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-09 17:48:43 +01:00
Guillaume Tardif
177b91adc8 Trying to fix flakyness on metrics e2e tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-09 16:25:32 +01:00
Guillaume Tardif
a804136b1c Trying to fix ACI flakyness on docker prune --force
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-09 16:16:15 +01:00
Nicolas De loof
a95a76291b
Merge pull request #1019 from docker/ps_containers 2020-12-09 15:04:55 +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
Djordje Lukic
7a841b98da Don't share the compose file with ACI
ACI doesn't support service labels, we need to split

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-09 12:02:04 +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
Guillaume Tardif
e4ed2b02d7 Fix container attaching to wrong volume name for compose non-external volumes. Took the opportunity to validate R/O volumes, but not related to this fix
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-08 18:48:18 +01:00
Guillaume Tardif
df9c96430c Allow anonymous volumes
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-08 17:44:55 +01:00
Djordje Lukic
033941d890 compose: Add service labels
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-08 16:32:30 +01:00
Djordje Lukic
f6c4c4e590 Move compose e2e tests to own folder
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-12-08 11:30:25 +01:00
Guillaume Tardif
a6316a90c7 Removed test checking compose has an error message on default context
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-07 14:41:27 +01:00
Guillame Tardif
8b60c76684 Remove project network on compose down
Signed-off-by: Guillame Tardif <guillaume.tardif@gmail.com>
2020-11-27 17:42:29 +01:00
Nicolas De Loof
1e2f0c75c5
fix path to build context
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-11-26 14:22:45 +01:00
Ulysses Souza
3fbb9bd864 Add auto creation of Azure volumes during compose up
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-11-20 16:34:11 +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
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
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
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
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
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
db7d04db79 Remove obsolete flag --json (that was marked hidden), kept for VSCode extension but is not used, docker context ls --format “{{ json . }}” is used.
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-04 14:54:01 +01:00
Chris Crone
aeab918688 tests: Replace Python test image with Go binary
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-03 18:50:44 +01:00
Guillaume Tardif
1a5ce029b4 Changed test img to dockerinternal org, removed the need of 2 images, added ECS E2E secret validation
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-03 18:04:45 +01:00