mirror of
https://github.com/docker/compose.git
synced 2026-09-24 22:44:24 +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>
12 lines
302 B
YAML
12 lines
302 B
YAML
services:
|
|
sample:
|
|
build:
|
|
context: .
|
|
command: sh -c 'cat /shared/marker.txt && sleep 5'
|
|
volumes:
|
|
- data:/shared
|
|
pre_start:
|
|
# No image specified - must fall back to the service's built image.
|
|
- command: sh -c 'built-marker > /shared/marker.txt'
|
|
volumes:
|
|
data:
|