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
Sebastiaan van Stijn
fb71f3bc8a
gofmt files with go 1.19
...
Prepare for future updates of Go, which may result in some changes in
formatting in GoDoc comments.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-07-25 12:31:30 +02:00
CrazyMax
1dce98712a
Go 1.18
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-24 00:49:08 +02: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
Anca Iordache
e54e9ec6de
Merge pull request #2076 from mikesir87/allow-exec-to-direct-instance
...
Allow compose exec to accept a specific instance in kube backend
2021-09-28 15:01:19 +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
Ulysses Souza
dc7422e494
Merge remote-tracking branch 'upstream/main' into error-on-unsupported-flags
2021-09-17 14:55:29 +02:00
Ulysses Souza
fa7e0632ba
Add checks for unsupported flags
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-09-17 10:19:02 +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
Michael Irwin
9a740992ac
Allow compose exec to accept a specific instance in kube backend
...
This resolves docker/compose-cli#1920
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
2021-09-15 14:48:21 -04:00
Nicolas De Loof
bd5def8454
use docker/compose/v2
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-08-31 19:19:32 +02:00
Mathieu Champlon
7b03b04484
Merge pull request #1916 from mikesir87/allow-unspecified-protocol-on-port
...
Allow unspecified protocol on exposed port in kube backend
2021-07-28 07:47:05 +02:00
Michael Irwin
e62bfc87c2
Allow unspecified protocol on exposed port in kube backend
...
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
The Compose spec doesn't provide a default value, but the code
was defaulting to TCP in the service protocol, just not in the
name. If no protocol was specified, it would cause an invalid
service name (eg, "80-")
2021-07-12 11:23:56 -04:00
Ulysses Souza
287f3156ae
Detect new containers on logs --follow
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-07-12 09:02:51 -03:00
Michael Irwin
8c5b970376
Fix container name used in kube log output
...
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
2021-07-08 22:04:01 -04:00
Mathieu Champlon
918fe00f3e
Fix loop variable captures in goroutines
...
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
2021-07-07 12:25:22 +02:00
Nicolas De Loof
96e1e041d6
distinguish stdout and stderr
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-02 10:53:11 +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
45a2c422e1
Merge pull request #1760 from ndeloof/split_writer
...
code cleanup: splitWriter does not use service/container name
2021-06-09 07:31:16 +02:00
Nicolas De loof
2edec5aa90
Merge pull request #1752 from ndeloof/up_backend
...
move up logic from CLI into local backend
2021-06-09 07:29:35 +02:00
aiordache
0d25709ada
Add port mapping to `compose ps`
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 14:48:09 +00:00
Nicolas De Loof
9d5026e966
code cleanup: splitWriter does not use service/container name
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-08 16:16:06 +02:00
aiordache
5d9d39dabd
Add port-forwarding on `compose up`
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache
d8db079af3
Add exec command
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache
7fd3c6f5cb
Port forwarding attempt
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache
bb25812511
Update existing stack installation on `compose up` instead of returning error
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache
9279954193
Check the status of pod containers on `compose up`
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00: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
dec9169198
move progress to backend on "down"
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-07 15:41:59 +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
Chris Crone
d27bda5e1d
build: Update golangci-lint
...
* Replace goling with revive as the former is deprecated
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-05-19 15:00:53 +00: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
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
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
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
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
Nicolas De Loof
9c4d8ab158
(re)attach to container after restart
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-08 14:11:15 +01:00
Nicolas De Loof
4c592700ee
introduce docker compose events
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-08 12:19:05 +01:00
Nicolas De loof
f08c58f903
Merge pull request #1398 from aiordache/compose_top
2021-03-08 11:25:46 +01:00
aiordache
62f24c7086
Add `ignore-push-failures` flag to `compose push`
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 13:39:31 +01:00
aiordache
79af862613
Add `compose top` command
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-05 12:44:16 +01:00