mirror of
https://github.com/docker/compose.git
synced 2026-09-03 00:06:26 +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>
13 lines
237 B
YAML
13 lines
237 B
YAML
services:
|
|
sample:
|
|
image: alpine
|
|
command: sh -c 'sleep 30'
|
|
deploy:
|
|
replicas: 2
|
|
volumes:
|
|
- data:/shared
|
|
pre_start:
|
|
- image: alpine
|
|
command: sh -c 'echo "ran" >> /shared/log'
|
|
volumes:
|
|
data:
|