compose/pkg/e2e/testdata/TestUpInteractiveIgnoresHookRunnerExit/compose.yaml
Nicolas De Loof b08c543d23 test(e2e): a foreground up ignores the exit of a pre_start runner
A pre_start runner carries the project and service labels but not the one-off
label the monitor's event filter requires, so its exit never reaches the
session. Nothing locked that: a runner exiting successfully would otherwise
win over the service's own exit code under --exit-code-from, or abort the
application under --abort-on-container-exit.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-26 16:28:51 +01:00

7 lines
140 B
YAML

services:
app:
image: alpine
command: sh -c 'sleep 2; exit 3'
pre_start:
- image: alpine
command: echo hook-ran