Commit Graph

2727 Commits

Author SHA1 Message Date
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 e2ea24ceb7 move compose-plugin commands under /cmd
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 a29d3e6f80
Merge pull request #1787 from ndeloof/remove_anonymous
`compose down -v` also removes anonymous volumes
2021-06-15 15:06:46 +02:00
Nicolas De loof 43655ba500
Merge pull request #1782 from ndeloof/inherited_volume
fix volume inheritance and conflict with trailing '/'
2021-06-14 16:30:11 +02:00
Nicolas De Loof 7f22783d56
pass volume option to ContainerRemove on down to also drop anonymous volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-14 15:05:11 +02:00
Nicolas De Loof 726e204099
fix volume inheritance and conflict with trailing '/'
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-11 16:38:41 +02:00
Nicolas De loof f06baeef20
Merge pull request #1779 from ndeloof/labels
define compose labels within the compose API
2021-06-11 11:56:59 +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 ff0864237c labels use absolute paths
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-11 09:45:17 +02:00
Nicolas De loof 79573e1acc
Merge pull request #1767 from ndeloof/exec_no_tty
automatically disable TTY if shell isn't a terminal
2021-06-11 09:44:14 +02:00
Nicolas De Loof 07357928d0
update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 16:40:36 +02:00
Nicolas De loof 1343bc52b0
Merge pull request #1774 from thaJeztah/bump_term
go.mod: update moby/term to fix Invalid Standard Handle Panic on Windows
2021-06-10 16:23:16 +02:00
Nicolas De Loof 679d24a178
ignore image we can't build when forcing PullPolicyBuild
close https://github.com/docker/compose-cli/issues/1776

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 16:21:32 +02:00
Sebastiaan van Stijn c6c3e7111a
go.mod: update moby/term to fix Invalid Standard Handle Panic on Windows
Changes:

- winterm: GetStdFile(): Added compatibility with "golang.org/x/sys/windows"
- winterm: fix GetStdFile() falltrough
- update deprecation message to refer to the correct replacement

full diff:

- bea5bbe245...9d4ed18562
- d6e3b3328b...2377c96fe7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-10 14:54:23 +02:00
Nicolas De loof bbe9c6bcfd
Delete CHANGELOG.md 2021-06-10 10:15:16 +02:00
Nicolas De loof 1b54a38db3
Merge pull request #1766 from ndeloof/config_profiles
config --profiles to list all defined profiles
2021-06-10 09:59:48 +02:00
Nicolas De Loof e7f228ecf9 wait for exec stdout to complete
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 09:58:47 +02:00
Nicolas De Loof b1d2c18dfc give -T a long name, otherwise help is weird
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 09:58:47 +02:00
Nicolas De Loof 1d38001164 automatically disable TTY if shell isn't a terminal
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 09:58:47 +02:00
Nicolas De Loof 4987a52975
fix hard vs soft ulimit
close https://github.com/docker/compose-cli/issues/1769

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 09:49:36 +02:00
Nicolas De loof f43899250f
Merge pull request #1770 from ndeloof/fix_network_alias_test
fix broken network_alias_test
2021-06-10 09:38:39 +02:00
Nicolas De Loof e641ffa0f4
fix broken network_alias_test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-10 09:30:11 +02:00
Nicolas De loof 21a4af34f7
Merge pull request #1768 from ndeloof/binary_license
include packaging LICENSE in release
2021-06-09 16:01:25 +02:00
Nicolas De Loof fdd2cd85d0
include packaging LICENSE in release
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-09 15:47:13 +02:00
Nicolas De loof 3202ab93bd
Merge pull request #1765 from ndeloof/log_printer 2021-06-09 14:24:40 +02:00
Nicolas De Loof 1ad964603a
config --profiles to list all defined profiles
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-09 12:44:38 +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 b0a66356e0
Merge pull request #1757 from ndeloof/docs
update reference docs
2021-06-09 07:31:22 +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
Nicolas De loof 25c3df6c86
Merge pull request #1758 from aiordache/kube_hack_april
Kube backend updates
2021-06-08 16:58:54 +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 abbba74b27
update reference docs
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-08 09:39:49 +02:00
Nicolas De loof d0e8ebef15
Merge pull request #1751 from ndeloof/pull_only_missing
only report pull progress if we have something to pull
2021-06-07 20:27:34 +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 b86ff6b18f
Merge pull request #1747 from ndeloof/down_progress 2021-06-07 15:57:38 +02:00
Nicolas De loof bb54b9afac
Merge pull request #1750 from ndeloof/update_compose-go
update compose-go
2021-06-07 15:47:45 +02:00
Nicolas De Loof cb144ab09a
update compose-go
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-07 15:42:24 +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 afa1618f17
only report pull progress if we have something to pull
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-07 15:31:49 +02:00
Nicolas De loof 5e5bccefbb
Merge pull request #1749 from thaJeztah/ignore_sigurg
mobycli: ignore SIGURG on Linux and Darwin
2021-06-07 14:30:43 +02:00
Nicolas De loof 94cbff00e0
Merge pull request #1748 from thaJeztah/bump_engine_vendor
go.mod: update docker and cli to v20.10.7
2021-06-07 14:17:43 +02:00
Sebastiaan van Stijn b4c8a9dc5f
mobycli: ignore SIGURG on Linux and Darwin
Equivalent of fff164c22e
and cedaf44ea2

In go1.14+, SIGURG is used by the runtime to handle preemtable system calls.
In practice this signal is caught *frequently*.

For reference:

https://go.googlesource.com/proposal/+/master/design/24543-non-cooperative-preemption.md
golang/go#37942

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-07 12:44:55 +02:00