hiroto.toyoda
ee4c01b66b
fix: correctly use errgroup.WithContext
...
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com >
2026-01-05 09:27:46 +01:00
hiroto.toyoda
d7a65f53f8
fix: correct typo in isSwarmEnabled method name
...
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com >
2026-01-05 09:11:58 +01:00
hiroto.toyoda
4520bcbaf6
fix: clean up temporary compose files after conversion
...
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com >
2026-01-05 09:01:56 +01:00
Ignacio López Luna
59f04b85af
remove duplicated version field
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-12-18 15:24:06 +01:00
Ignacio López Luna
b4574c8bd6
do not strip build metadata
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-12-18 15:24:06 +01:00
Ignacio López Luna
29d6c918c4
use github.com/docker/docker/api/types/versions for comparing versions and store plugin version obtained by pluginManager in newModelAPI
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-12-18 15:24:06 +01:00
Ignacio López Luna
58403169f3
Only append RuntimeFlags if docker model CLI version is >= v1.0.6
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-12-18 15:24:06 +01:00
Ignacio López Luna
6aee7f8370
gets back runtime flags when configuring models
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-12-18 15:24:06 +01:00
Nicolas De Loof
c89b8a2d6b
warn user no service has been selected to build
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-18 11:35:33 +01:00
Nicolas De Loof
aec9f54176
check model plugin is successfully loaded and store version
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-18 11:01:35 +01:00
Nicolas De Loof
8e5b25c0f1
Restored support for BUILDKIT_PROGRESS.
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-15 18:03:04 +01:00
Nicolas De Loof
d4c1987638
Prevented incorrect progress metrics to break compose display.
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-15 18:02:31 +01:00
Nicolas De Loof
e22426443e
Introduced fsnotify build tag to select watcher implementation
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-15 10:16:12 +01:00
Guillaume Lours
6599f8ad84
add 'configured' event at the end of model configuration phase
...
Currently when using models, the final message is 'confugiring' which could let users think the DMR configuration is still pending
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
# Conflicts:
# pkg/api/event.go
2025-12-15 10:14:21 +01:00
Nicolas De Loof
02008a0097
Restored image layer download progress details on pull.
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-12 14:22:02 +01:00
xiaolinny
0878c59a74
chore: fix grammatical errors and improve clarity in code
...
Signed-off-by: xiaolinny <xiaolincode@outlook.com >
2025-12-08 11:20:48 +01:00
Nicolas De Loof
c0345e4f45
restore support for COMPOSE_COMPATIBILITY
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-07 18:42:04 +01:00
yangfeiyu
000a4a4b9f
check buildx version before comparing it
...
Signed-off-by: yangfeiyu <yangfeiyu20102011@163.com >
2025-12-04 08:34:13 +01:00
zjumathcode
13d70b1c11
refactor: replace interface{} with any for clarity and modernization
...
Signed-off-by: zjumathcode <pai314159@2980.com >
2025-12-02 08:41:49 +01:00
Nicolas De Loof
72f4d655ef
Bump compose go to v2.10.0
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-12-01 17:19:40 +01:00
Sebastiaan van Stijn
dc66e6bad1
golangci-lint: use gci formatter instead of goimports
...
Most files already grouped imports into "stdlib -> other -> local",
but some files didn't. The gci formatter is similar to goimports, but
has better options to make sure imports are grouped in the expected
order (and to make sure no additional groups are present).
This formatter has a 'fix' function, so code can be re-formatted auto-
matically;
golangci-lint run -v --fix
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-12-01 12:21:50 +01:00
Ignacio López Luna
af8cac5768
just warn user
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-11-28 18:52:36 +01:00
Ignacio Lopez
8477a85ce6
feat(model): reject runtime flags in model configuration
...
Signed-off-by: Ignacio López Luna <ignasi.lopez.luna@gmail.com >
2025-11-28 18:52:36 +01:00
Nicolas De Loof
e0977c2df1
only check for env_file
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-28 09:48:55 +01:00
Nicolas De Loof
2d569916fe
skip includes preparing publish
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-28 09:41:43 +01:00
liuyueyangxmu
3975f02153
refactor: use strings.Builder to improve performance
...
Signed-off-by: liuyueyangxmu <liuyueyangxmu@outlook.com >
2025-11-26 10:52:24 +01:00
Nicolas De Loof
fa832d72d7
Added support for build.no_cache_filter
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-26 09:37:04 +01:00
vicerace
822f5a702b
refactor: replace Split in loops with more efficient SplitSeq
...
Signed-off-by: vicerace <vicerace@sohu.com >
2025-11-25 11:37:03 +01:00
Nicolas De Loof
6f365395e5
Fix support for port range
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-16 20:38:54 +01:00
Sebastiaan van Stijn
c47b8c32e3
Dockerfile: update golangci-lint to v2.6.2
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-11-16 14:54:58 +01:00
Sebastiaan van Stijn
89d3944837
fix linting issues
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-11-16 14:54:58 +01:00
Nicolas De Loof
d7e5f20eb6
images command should display image Created time or N/A if not available
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-13 09:40:56 +01:00
Nicolas De Loof
2b4543935c
next release will be major version v5.x
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-13 09:32:43 +01:00
Nicolas De Loof
6e55832b1c
add (restore) support for detach keys
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-12 14:23:58 +01:00
Nicolas De Loof
45def51117
make DRYRUN_PREFIX a display attribute, move DryRunClient out of pkg/api
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-12 11:17:28 +01:00
Nicolas De Loof
aff5c115d6
move progress UI components into cmd
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-12 11:17:28 +01:00
Nicolas De Loof
5ef495c898
removed unecessary check
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-12 08:34:29 +01:00
Jonty
dc90c4e44d
Grammatical fix
...
Signed-off-by: Jonty <jontyleslie@gmail.com >
2025-11-10 11:34:18 +01:00
Jonty
91e1753d80
Grammatical fix
...
Signed-off-by: Jonty <jontyleslie@gmail.com >
2025-11-10 11:34:18 +01:00
Jonty
9db27a65c6
Making the American/British spellings consistent to the error messages
...
Signed-off-by: Jonty <jontyleslie@gmail.com >
2025-11-10 11:34:18 +01:00
Nicolas De Loof
7eb5adeef6
introduce --insecure-registry, reserved for testing purpose
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-06 16:17:21 +01:00
Suleiman Dibirov
67e39a41f2
fixes
...
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com >
2025-11-06 08:02:59 +01:00
Suleiman Dibirov
dc1283289d
fix: use NewParallelCLI in compose_run_build_once_test.go
...
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com >
2025-11-06 08:02:59 +01:00
Nicolas De Loof
af579ebd4b
drop support for internal buildkit builder
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-04 11:36:40 +01:00
Nicolas De Loof
fc2a7d13fa
from Compose CLI, we know the streams used to configure LogConsumer
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-04 10:25:14 +01:00
Nicolas De Loof
d70bb8cf5e
distinguish event (short) status text and details
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-04 10:18:55 +01:00
Nicolas De Loof
bff3d35305
render events in order they were first received
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-11-04 10:18:55 +01:00
Guillaume Lours
d74274bc04
Add LoadProject method to Compose SDK API
...
This commit adds a new LoadProject method to the Compose service API,
allowing SDK users to programmatically load Compose projects with full
control over the loading process.
Changes:
1. New API method (pkg/api/api.go):
- LoadProject(ctx, ProjectLoadOptions) (*types.Project, error)
- ProjectLoadOptions struct with all loader configuration
- LoadListener callback for event notifications (metrics, etc.)
- ProjectOptionsFns field for compose-go loader options
2. Implementation (pkg/compose/loader.go):
- createRemoteLoaders: Git and OCI remote loader setup
- buildProjectOptions: Translates ProjectLoadOptions to compose-go options
- postProcessProject: Service filtering, labels, resource pruning
3. Unit test (pkg/compose/loader_test.go):
- Tests basic project loading functionality
- Verifies ProjectOptionsFns with cli.WithoutEnvironmentResolution
4. Mock update (pkg/mocks/mock_docker_compose_api.go):
- Added LoadProject to mock interface
Key design decisions:
- LoadListener pattern keeps metrics collection in CLI, not SDK
- ProjectOptionsFns exposes compose-go options directly (e.g., cli.WithInterpolation(false))
- Post-processing in SDK: labels, service filtering, resource pruning
- Environment resolution NOT in SDK (command responsibility)
- Compatibility mode handling (api.Separator)
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-11-03 08:58:30 +01:00
Stanislav Zhuk
10f15cacdd
fix typo in error message
...
Signed-off-by: Stanislav Zhuk <stasadev@gmail.com >
2025-11-03 08:38:49 +01:00
Guillaume Lours
3658a063bb
add AlwaysOkPrompt to replace 'AlwaysYes' current implementation'
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-11-03 08:01:59 +01:00