mirror of
https://github.com/docker/compose.git
synced 2026-09-21 13:04:36 +00:00
- exec: exit-code propagation, -e env forwarding and one-off targeting
become two scenarios with an inline model.
- hooks: the thirteen post_start/pre_stop/pre_start tests migrate. The
volume probe is a named action (probeVolume); wc -l counts are locked
by matching the exact '1 /mnt/tokens.txt' line instead of parsing.
The spec-change scenario replaces its two fixture files with one
model interpolating ${HOOK_VERSION}, so the changed spec — and the
Recreated expectation it implies — is visible in the test source.
pre_stop scenarios drop the fixture's fixed 'sample-data' volume
name, which parallel projects used to share.
Fixtures hooks/ and pre_start/ are removed.
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
11 lines
242 B
YAML
11 lines
242 B
YAML
services:
|
|
sample:
|
|
image: alpine
|
|
command: sh -c 'cat /shared/init.txt && sleep 5'
|
|
volumes:
|
|
- data:/shared
|
|
pre_start:
|
|
- image: alpine
|
|
command: sh -c 'echo "initialized" > /shared/init.txt'
|
|
volumes:
|
|
data:
|