ibrahim yapar
56ab28aef3
compose: recreate container when mounted image digest changes
...
Until now, mustRecreate logic only checked for divergence in TypeVolume
mounts but ignored TypeImage mounts. This inconsistency caused containers
to erroneously retain stale images even after the source image was rebuilt.
This commit updates ensureImagesExists to resolve image volume sources to
their digests using the official reference package. This enables ServiceHash
(config hash) to naturally detect underlying image digest changes,
triggering recreation via the standard convergence logic.
An E2E test case is added to verify this behavior.
Fixes #13547
Signed-off-by: ibrahim yapar <74625807+ibrahimypr@users.noreply.github.com >
2026-01-26 15:55:44 +01:00
Suleiman Dibirov
67e39a41f2
fixes
...
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com >
2025-11-06 08:02:59 +01:00
Suleiman Dibirov
0c854a6ab7
add e2e tests
...
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com >
2025-10-29 10:47:18 +01:00
Nicolas De Loof
e59150baa8
fix OCI compose override support
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-10-23 12:04:37 +02:00
Nicolas De Loof
585c4db4f9
Compose can't create a tar with adequate uid:gid ownership
...
as we can't get container UID/GID as int by ContainerInspect
revert https://github.com/docker/compose/pull/13288
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-10-20 09:51:58 +02:00
Nicolas De Loof
ee75be342b
Set secret/config uid:gid to match container's USER
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-10-16 17:43:04 +02:00
Nicolas De Loof
a03f2562df
bake only interpolates ${*}
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-10-13 10:40:19 +02:00
Nicolas De Loof
cf7e31f731
escape $ in bake.json as interpolation already has been managed by compose
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-10-03 09:25:35 +02:00
Nicolas De Loof
2ca7b96e33
resolve secrets based on env var before executing bake
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-09-22 14:56:15 +02:00
Ricardo Branco
a32dc3da72
test: Set stop_signal to SIGTERM
...
The official nginx images set STOPSIGNAL to SIGQUIT which dumps core.
Set it to SIGTERM to avoid dumping core on e2e tests.
Signed-off-by: Ricardo Branco <rbranco@suse.de >
2025-09-19 10:31:20 +02:00
Guillaume Lours
d07c437ce8
dectect if piped run command and disable tty if so
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-09-19 09:51:15 +02:00
Nicolas De Loof
a429c09dfa
fix support for build with bake when target docker endpoint requires TLS
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-09-18 11:16:47 +02:00
Guillaume Lours
df3c27c864
add deprecation warning for x-initialSync + e2e test
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-09-18 11:06:44 +02:00
Nicolas De Loof
09689400e5
fix run --build support for service:* reference in additional_context
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-09-08 15:10:29 +02:00
Nicolas De Loof
02ffe2ac6c
prefer application container vs one-off running exec without index
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-09-07 14:41:34 +02:00
Guillaume Lours
6b9667401a
fix the helm bridge e2e tests after the latest update of the templates
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-07-16 16:04:52 +02:00
Nicolas De Loof
29308cb97e
keep containers attached on stop to capture termination logs
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-07-15 11:26:44 +02:00
Nicolas De Loof
7cf7c6414f
build resolves enabled service after project has been loaded
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-07-07 16:43:42 +02:00
Nicolas De Loof
a9e76943f6
introduce support for models
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-30 19:22:35 +02:00
Nicolas De Loof
b6a0df8d3c
e2e compose run --env
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-30 19:09:22 +02:00
Guillaume Lours
5a063b7510
fix provider concurrent environment map accesses
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-06-30 19:07:10 +02:00
Guillaume Lours
f613379373
make sure the post_start hooks fails
...
before we were assuming the container will be close before the post_start will be executed
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-06-30 12:37:58 +02:00
Nathan Scott
257ea7b75d
Swap to Reader in bake to avoid hangs on output
...
Signed-off-by: Nathan Scott <natedscott@gmail.com >
2025-06-27 16:19:28 +02:00
Guillaume Lours
d219aa66f4
don't fail down cmd if services with pre_stop hook already stopped/removed
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-06-27 14:41:52 +02:00
Nicolas De Loof
1d34661e91
fix support for additional_contexts with service sub-dependencies
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-12 09:47:19 +02:00
Nicolas De Loof
97530790fa
only look for required image in bake metadata
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-11 13:46:57 +02:00
Nicolas De Loof
27e90a3fdf
end-to-end test
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-02 18:57:07 +02:00
Nicolas De Loof
f4fc010d6b
build dependent service images when required
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-06-02 12:28:43 +02:00
Guillaume Lours
be83f63f26
add e2e tests for bridge convert and transformers ls commands
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-05-27 10:35:30 +02:00
Nicolas De Loof
4f6cc2a330
run ContainerStart sequentially
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-05-20 09:47:58 +02:00
Nicolas De Loof
0403f0d76d
e2e test for start_interval
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-04-30 11:08:09 +02:00
Nicolas De Loof
955e4ed94e
introduce networks.interface_name
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-04-24 12:06:17 +02:00
Nicolas De Loof
01e83defc2
introduce volume.type=image
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-04-09 16:59:42 +02:00
Nicolas De Loof
342a2a9e71
Fix support for depends_on.restart in up and restart commands
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-19 15:29:50 +01:00
Nicolas De Loof
6a8c0988cf
run only loads required service env_file and ignores others
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-18 09:39:15 +01:00
Matiboux
9129abe516
Fix edge-case bug path prefix check for watch & bind mounts
...
Signed-off-by: Matiboux <matiboux@gmail.com >
2025-03-17 17:40:40 +01:00
Nicolas De Loof
ea07ba8e2a
fix support for secret set by env inside included file
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-14 16:21:45 +01:00
Nicolas De Loof
83cafe2838
Add support to pass env-from-file to docker compose run
...
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com >
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-12 09:04:39 +01:00
Guillaume Lours
55b5f233c2
use Defang secret-detector to identify potential secret leaks before publishing OCI artifacts
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-03-11 15:02:37 +01:00
Nicolas De Loof
b23728941d
only load env_file after services have been selected
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-10 08:32:03 +01:00
Nicolas De Loof
66a47169d5
Publish compose file with required siblings used by extends
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-07 13:58:10 +01:00
Nicolas De Loof
4c2ecb542f
reject compose file with bind mounts
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-04 16:10:53 +01:00
Nicolas De Loof
bcd000ab40
refuse to publish compose file with local include
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-04 15:55:17 +01:00
Nicolas De Loof
19571c2c81
e2e test for watch.include
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-03-03 21:59:26 +01:00
Guillaume Lours
66dfa7d181
block the publication of an OCI artifact if one or more services contain only a build section
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-03-03 16:23:21 +01:00
Nicolas De Loof
e38b729a30
fix service: additional_contexts running internal buildkit client
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-02-25 09:47:02 +01:00
Nicolas De Loof
5e2abb6c26
support additional_context reference to another service
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-02-03 17:23:35 +01:00
Guillaume Lours
806ac91cf6
add warning when trying to publish env variables with OCI artifact
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-01-30 17:37:07 +01:00
Guillaume Lours
840288895e
add --with-env flag to publish command
...
this flag allow publishing env variables in the Compose OCI artifact
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-01-29 15:45:00 +01:00
Nicolas De Loof
d04b3f48e4
e2e test covering multi-service rebuild with common resources
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com >
2025-01-22 12:05:58 +01:00