mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +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 <[email protected]>
12 lines
209 B
YAML
12 lines
209 B
YAML
services:
|
|
sample:
|
|
image: alpine
|
|
init: true
|
|
command: sleep infinity
|
|
volumes:
|
|
- data:/data
|
|
pre_stop:
|
|
- command: sh -c 'echo "In the pre-stop" >> /data/log.txt'
|
|
volumes:
|
|
data:
|