474 Commits

Author SHA1 Message Date
Nicolas De Loof
ba588275a3
configure service with ipAddress
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-04 15:53:09 +02:00
Nicolas De loof
c64317a981
Merge pull request #1627 from ulyssessouza/add-services-on-ps
Add support for services on ps command
2021-05-04 12:45:29 +02:00
Nicolas De Loof
87abb4eb9c
don't invoke r.Close on error as r == nil
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-04 08:42:49 +02:00
Ulysses Souza
36d6c40e52 Add support for services on ps command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-05-03 20:03:52 -03:00
Julien Tant
d827213d32 ignore linter err
Signed-off-by: Julien Tant <julien@craftyx.fr>
2021-05-03 11:57:55 -07:00
Julien Tant
42cd3da59d add tests
Signed-off-by: Julien Tant <julien@craftyx.fr>
2021-05-03 10:58:52 -07:00
Nicolas De Loof
4186cce1dd
use highest priority network to declare network aliasses
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-03 16:01:10 +02:00
Julien Tant
c2f2196d30 Add all parameter
Signed-off-by: Julien Tant <julien@craftyx.fr>
2021-05-01 19:24:07 -07:00
Julien Tant
8f9ce9d763 Add cp command
Signed-off-by: Julien Tant <julien@craftyx.fr>
2021-05-01 18:20:52 -07:00
Nicolas De loof
7d43d39de2
Merge pull request #1616 from ndeloof/pid_namespace
handle dependency involved by shared PID namespace
2021-04-30 12:25:33 +02:00
Nicolas De Loof
deecf76421
reduce code complexity with sub-functions
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-30 09:35:09 +02:00
Nicolas De Loof
98187b2f62
down --volume to remove volume
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-30 08:18:06 +02:00
Nicolas De Loof
a93008ab1c
handle dependency involved by shared PID namespace
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-29 21:48:20 +02:00
Nicolas De loof
b46015f2f8
Merge pull request #1610 from ndeloof/build_args_from_env 2021-04-29 12:15:35 +02:00
Nicolas De loof
634ade5e8a
Merge pull request #1609 from ndeloof/exec_exitcode 2021-04-29 12:14:07 +02:00
Nicolas De Loof
15eab93b31
docker compose exec to return command exit code
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-29 10:58:45 +02:00
Nicolas De Loof
e433777796
resolve build args without value from environment
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-29 10:43:09 +02:00
Nicolas De Loof
b33588b725
when bind mount has CreateHostPath set, use bind API
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-27 17:03:16 +02:00
Guillaume Tardif
6c5bd67c19 Fix race in TestAttachRestart : wait for logs to appear rather than have a fixed TTL for the application
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-26 12:01:24 +02:00
guillaume.tardif
df7f57e227 one more windows adaptation
Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
2021-04-23 13:21:10 +02:00
Guillaume Tardif
95179f1625 Compose Cancel test not compile/run on windows (no signals)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-23 12:39:55 +02:00
guillaume.tardif
4fa4284eb4 Adapt compose tests to pass with Desktop Windows
Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
2021-04-23 12:04:42 +02:00
Guillaume Tardif
de3fa40bae Handle Ctrl+C for compose CLI plugin.
Could do something nicer passing the context to the compose command, rather than intercepting it and checking if it’s “.WithCancel” or not...

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-23 10:21:05 +02:00
Guillaume Tardif
0785114b90 Also ensure we don’t need compose cloud integration to run compose CLI plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-22 22:03:52 +02:00
Guillaume Tardif
1fce1623ee Cross build & package compose-cli plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:29 +02:00
Guillaume Tardif
c7dc12d310 E2E tests using compose CLI plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-22 17:51:29 +02:00
Guillaume Tardif
1dc97e8c4b Compose as a cli plugin
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:29 +02:00
Nicolas De Loof
85af8cdaaa local backend to rely on dockerCli's LoadDefaultConfigFile
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:28 +02:00
Guillaume Tardif
ec693fc5f8 Fir port display assertion, Docker engine returns 2 entries in container inspect
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-22 17:34:26 +02:00
Guillaume Tardif
cc0423df6e Fix down not working if run from a different folder than up, because container labels stored relative paths
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-22 16:19:31 +02:00
Nicolas De Loof
c83c46293f
fix race: poll for service completion. Using waitContainer might happend after container exit
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 08:51:25 +02:00
Nicolas De loof
cd4a08d0d6
Merge pull request #1530 from aiordache/recreate_after_build 2021-04-20 21:05:37 +02:00
Nicolas De loof
510ffc10a5
Merge pull request #1577 from ndeloof/stop_services
only stop/remove selected services
2021-04-20 21:05:03 +02:00
Nicolas De Loof
5cead2266d
only stop/remove selected services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-20 19:06:41 +02:00
aiordache
c227fd5c5f refactor to reduce calls to InspectRawImage
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-20 15:18:08 +02:00
aiordache
31de84f547 Set image digest as service image to trigger recreation after build
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-20 15:15:24 +02:00
Guillaume Tardif
b96dc49bcb Avoid panic: concurrent map writes
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-20 11:13:00 +02:00
Ulysses Souza
0fbeedfb6e Fix progress writer network creation and removal
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-04-19 17:27:10 -03:00
Guillaume Tardif
66f90098cd
Merge pull request #1550 from docker/local-test-cleanup
Local test cleanup
2021-04-19 17:51:01 +02:00
Guillaume Tardif
02b9363233 avoid assertions in defer statements.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-19 17:33:51 +02:00
Chris Crone
c804b7a5a6 local.e2e: Fix Compose start/stop tests
* Fix strings.Contains ordering
* Correct logic

Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-19 12:50:16 +02:00
Chris Crone
c0e5fbba99 local.e2e: Reduce number of test images
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-19 12:50:16 +02:00
Nicolas De Loof
a8819763b4
scale must ignore oneoff containers
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-16 09:15:22 +02:00
Nicolas De Loof
334e362d91 don't set aliasses if no network binding was declared
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-15 16:37:57 +02:00
Nicolas De Loof
0ab75d28ba don't report error resizing tty, as container could stop any time
see 04dad42c3c/cli/command/container/tty.go (L71) wich always return nil

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-15 10:13:19 +02:00
Nicolas De Loof
597598cb7a only start container once we have a wait channel set, to prevent race condition with fast terminating container
see https://github.com/docker/cli/blob/master/cli/command/container/run.go#L157-L168

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-15 10:13:19 +02:00
Nicolas De Loof
1dc0c4cef9
fix warning message
close https://github.com/docker/compose-cli/issues/1536

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-14 08:19:22 +02:00
Nicolas De loof
8e8635f520
Revert "E2e test improvements" 2021-04-13 17:15:19 +02:00
Nicolas De loof
9abd990e1c
Merge pull request #1533 from chris-crone/e2e-test-improvements 2021-04-13 15:44:30 +02:00
Nicolas De loof
0b968395dd
Merge pull request #1516 from docker/version_json
don't include stderr in moby exec output
2021-04-13 15:43:27 +02:00