Yves Brissaud
8371dab4ae
ref: use plugins part of config file
...
To avoid any conflict with the CLI, use the `plugins` section of the
config. This section is read and saved by the CLI without the risk to
remove the value in there. So it's a safe way to deal with this feature.
As it's a cross plugin configuration (now for scout but goal is wider
than that) then put it under a generic `-x-cli-hints` name so that other
plugins might use it if needed.
Value can be true/false, but is parsed against these exact two values
instead of using the ParseBool.
Both the environment variable and the config value are parsed the same
way.
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com >
2023-06-13 10:19:22 +02:00
Yves Brissaud
1ceb12ae77
chore: manage CLI Hints enable/disable behaviour
...
- cliHints entry in config.json
- if not present, enabled by default
- can be overridden by the DOCKER_CLI_HINTS environment variable
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com >
2023-06-12 14:39:50 +02:00
Milas Bowman
020489241f
lint: update for Go 1.19 / golangci-lint 1.50.1
...
Signed-off-by: Milas Bowman <milas.bowman@docker.com >
2023-02-01 16:04:49 -05:00
Djordje Lukic
bdc9d81a7a
Remove the call to com.docker.cli to get the default context
...
This is no longer needed since the `docker compose` command was moved to a cli plugin
for moby contexts
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com >
2022-01-25 23:36:59 +01:00
Mathieu Champlon
bef0ecf171
Bump compose to 2.0.1
...
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com >
2021-10-27 08:26:49 +02:00
Lorena Rangel
3ff346838a
point to correct backend when switching context
...
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com >
2021-10-18 14:15:04 +02:00
Ulysses Souza
81c53672d5
Linter fixes
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-09-18 15:50:25 +02:00
Ulysses Souza
25b335924c
Store context type in the context for reusing
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-09-17 19:26:24 +02:00
Nicolas De Loof
07f6f804a9
use docker/compose/v2
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-09-17 10:19:02 +02:00
Nicolas De Loof
49e7f2d45d
Move compose v2 implementation under pkg/compose with dependencies
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-15 15:52:48 +02:00
Nicolas De Loof
d90495e1cd
move compose API into pkg/api
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-15 15:52:48 +02:00
Nicolas De Loof
89a63b79cb
define compose labels within the compose API
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-11 11:46:34 +02:00
Nicolas De Loof
919d6c9ed8
LogPrinter should not be part of the API
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-09 10:15:38 +02:00
Nicolas De Loof
c135bd1d7c
move up logic from CLI into local backend
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-07 20:20:31 +02:00
Nicolas De Loof
82f35d1bac
Move progress writter into backend(s)
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-03 14:16:22 +02:00
Nicolas De Loof
9b0bc6fee1
code cleanup: most progress.Run don't return a value
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-06-01 15:18:03 +02:00
Nicolas De Loof
6f6ae071d6
improve container events watch robustness
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-05-26 14:04:38 +02:00
Nicolas De Loof
c16834cba6
attach to containers added by "scale"
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-05-25 22:59:57 +02:00
Nicolas De loof
e91e163c84
Merge pull request #1688 from docker/interceptor
2021-05-20 18:33:41 +02:00
Nicolas De Loof
c76dd110c7
only (re)start selected services
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-05-20 12:03:30 +02:00
Nicolas De Loof
62af4e0cc7
introduce ServiceProxy for backend lazy initialization
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-05-19 15:48:56 +02:00
Nicolas De Loof
221f420ce2
ps shows healthcheck only for running container
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-05-17 10:02:47 +02:00
Nicolas De loof
db6978aa57
Merge pull request #1628 from ulyssessouza/add-bypass-envvar
...
Support bypass envvars
2021-05-07 07:25:14 +02:00
Ulysses Souza
f159bc4901
Support bypass envvars
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-05-06 15:47:31 -03:00
Nicolas De loof
4c0cbea24b
Merge pull request #1623 from JulienTant/1391-add-cp
2021-05-06 15:49:51 +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
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
b46015f2f8
Merge pull request #1610 from ndeloof/build_args_from_env
2021-04-29 12:15:35 +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
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
5cead2266d
only stop/remove selected services
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-04-20 19:06:41 +02:00
Chris Crone
411612ed8d
Fix scan message with quiet flag
...
Signed-off-by: Chris Crone <christopher.crone@docker.com >
2021-04-13 14:30:27 +02:00
Guillaume Tardif
eb7732ffec
Merge pull request #1505 from aiordache/image_cmd
...
Add `compose images` cmd
2021-04-08 11:24:35 +02:00
Nicolas De Loof
7d85485242
pause/unpause only need project name. use getContainers where possible
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-04-08 09:40:50 +02:00
aiordache
08055d7c7a
Add compose images cmd
...
Signed-off-by: aiordache <anca.iordache@docker.com >
2021-04-07 16:08:09 +02:00
Nicolas De loof
5b61e80e92
Merge pull request #1467 from ulyssessouza/progress-tail-msgs
...
Add plain tail messages on progress writer
2021-04-07 10:20:47 +02:00
aiordache
3f0ee7072f
Add no-cache build flag
...
Signed-off-by: aiordache <anca.iordache@docker.com >
2021-03-26 18:16:22 +01:00
Ulysses Souza
e5834f37fd
Add tail messages on progress writer
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-03-25 18:21:36 -03:00
Guillaume Tardif
ee4e85ae1d
Merge pull request #1462 from docker/rawTerminal
...
set terminal in character mode when attached to a container
2021-03-25 18:17:27 +01:00
Ulysses Souza
02744ac4f9
Add --ignore-pull-failures to command pull
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-03-24 14:44:04 -03:00
Nicolas De Loof
d4a8e92f46
set terminal in character mode when attached to a container
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-03-24 15:37:32 +01:00
Guillaume Tardif
a86a4737da
Merge pull request #1438 from docker/port
...
introduce `port` command for parity with docker-compose
2021-03-19 15:08:09 +01:00
Guillaume Tardif
e0344ea7b4
Merge pull request #1415 from ulyssessouza/add-restart
...
Add restart command
2021-03-19 15:04:57 +01:00
Nicolas De Loof
8b38874aba
introduce port command for parity with docker-compose
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-03-19 13:31:42 +01:00
Nicolas De Loof
949e8bb090
use "container name witout project" for both logs and events
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-03-17 11:38:43 +01:00
Ulysses Souza
2fdc3bad48
Add restart command
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com >
2021-03-16 02:02:36 -03:00
Nicolas De Loof
48402585fd
replace passing parameters by context with singletons
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2021-03-12 15:28:17 +01:00
Guillaume Tardif
9301c298ef
Merge pull request #1390 from ulyssessouza/quiet-pull
...
Add `quietPull` option to `up`
2021-03-11 09:09:55 +01:00