Commit Graph

488 Commits

Author SHA1 Message Date
Nicolas De Loof fb73dd58d9 Move compose e2e tests into pkg
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-28 08:47:58 +02:00
Nicolas De Loof c901edd65d
introduce `convergence` to hold per-service Containers and prevent race conditions
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-25 13:18:00 +02:00
Nicolas De loof 98a781f5cf
Merge pull request #1827 from ndeloof/ipam 2021-06-23 15:58:26 +02:00
Nicolas De loof 8d2019e77d
Merge pull request #1831 from ndeloof/inherit_volumes
inherit anoymous volumes
2021-06-23 15:35:18 +02:00
Nicolas De Loof 05b510a447
compose ps to include container command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-22 16:09:47 +02:00
Nicolas De Loof 444fc26a51
inherit anoymous volumes
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-22 14:37:52 +02:00
Nicolas De Loof 2fdc2e1dfb apply IPAM configuration to network and services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-22 11:23:57 +02:00
Nicolas De Loof 7f18b47a9a prefer canonical `compose.yaml` file name
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-22 11:23:57 +02:00
Lorena Rangel b38d35ae1c set container links and external links in network
Signed-off-by: Lorena Rangel <lorena.rangel@docker.com>
2021-06-17 15:51:14 +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 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 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 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 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 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 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 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 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
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 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 165686838e
Merge pull request #1733 from ndeloof/pull_digested
stop using buildkit hack to pull images
2021-06-04 14:26:25 +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 fe085df7b7
stop using buildkit hack to pull images
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-03 11:32:30 +02:00
Nicolas De Loof 907e8e1f24 implement healthcheck.disable by setting Test: "NONE"
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-02 10:32:17 +02:00
Nicolas De loof 2315a1dad7
Merge pull request #1707 from docker/up_follow 2021-05-31 10:54:40 +02:00
Nicolas De Loof 4947a4037f
remove unresolved vars from env set by `exec`
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-27 16:19:28 +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 2605aae33f
Merge pull request #1711 from ndeloof/rename_race
prevent race condition renaming containers
2021-05-25 20:53:10 +02:00
Nicolas De Loof 5f09e330fb
prevent race condition renaming containers
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-25 14:02:07 +02:00
guillaume.tardif 7a25378590 Do not resolve mount linux abs path as windows path on windows (eg. /var/run/docker.sock => c:/var/run/docker.sock folder)
Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
2021-05-24 21:54:36 +02:00
Nicolas De loof ccaa1754d4
Merge pull request #1682 from ndeloof/exec_env
define exec env by merging service env with command line --env
2021-05-20 21:29:57 +02:00
Nicolas De Loof 04c3833450
define exec env by merging service env with command line --env
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-20 18:54:03 +02:00
Nicolas De loof d70b50bc3b
Merge pull request #1689 from chris-crone/bump-linter 2021-05-20 18:33:48 +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
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
Nicolas De loof dbd936b704
Merge pull request #1679 from ndeloof/build_args
resolve build args on compose up --build
2021-05-17 16:32:38 +02:00
Nicolas De loof 2162bc922a
Merge pull request #1675 from ndeloof/ps_exitcode
ps shows healthcheck only for running container
2021-05-17 16:31:43 +02:00
Nicolas De loof 8f2e572edd
Merge pull request #1676 from ndeloof/bind_npipe
named pipe need to be mounted using the bind API
2021-05-17 16:30:45 +02:00
Nicolas De Loof 377bcd8048
only start current project services
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-17 11:05:23 +02:00
Nicolas De Loof 70eaf2cc61
resolve build args on compose up --build
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-17 10:54:05 +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