mirror of
https://github.com/docker/compose.git
synced 2025-09-22 17:27:50 +02:00
test: Set stop_signal to SIGTERM
The official nginx images set STOPSIGNAL to SIGQUIT which dumps core. Set it to SIGTERM to avoid dumping core on e2e tests. Signed-off-by: Ricardo Branco <rbranco@suse.de>
This commit is contained in:
parent
db260938c1
commit
a32dc3da72
@ -9,6 +9,7 @@ services:
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
stop_signal: SIGTERM
|
||||
healthcheck:
|
||||
test: "echo | nc -w 5 localhost:80"
|
||||
interval: 2s
|
||||
|
@ -3,6 +3,7 @@ services:
|
||||
image: nginx:alpine
|
||||
init: true
|
||||
command: tail -f /dev/null
|
||||
stop_signal: SIGTERM
|
||||
depends_on:
|
||||
nginx: {condition: service_healthy, restart: true}
|
||||
|
||||
@ -10,6 +11,7 @@ services:
|
||||
image: nginx:alpine
|
||||
init: true
|
||||
command: tail -f /dev/null
|
||||
stop_signal: SIGTERM
|
||||
depends_on:
|
||||
nginx: { condition: service_healthy }
|
||||
|
||||
@ -17,6 +19,7 @@ services:
|
||||
image: nginx:alpine
|
||||
labels:
|
||||
TEST: ${LABEL:-test}
|
||||
stop_signal: SIGTERM
|
||||
healthcheck:
|
||||
test: "echo | nc -w 5 localhost:80"
|
||||
interval: 2s
|
||||
|
Loading…
x
Reference in New Issue
Block a user