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:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
stop_signal: SIGTERM
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "echo | nc -w 5 localhost:80"
|
test: "echo | nc -w 5 localhost:80"
|
||||||
interval: 2s
|
interval: 2s
|
||||||
|
@ -3,6 +3,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
init: true
|
init: true
|
||||||
command: tail -f /dev/null
|
command: tail -f /dev/null
|
||||||
|
stop_signal: SIGTERM
|
||||||
depends_on:
|
depends_on:
|
||||||
nginx: {condition: service_healthy, restart: true}
|
nginx: {condition: service_healthy, restart: true}
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
init: true
|
init: true
|
||||||
command: tail -f /dev/null
|
command: tail -f /dev/null
|
||||||
|
stop_signal: SIGTERM
|
||||||
depends_on:
|
depends_on:
|
||||||
nginx: { condition: service_healthy }
|
nginx: { condition: service_healthy }
|
||||||
|
|
||||||
@ -17,6 +19,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
labels:
|
labels:
|
||||||
TEST: ${LABEL:-test}
|
TEST: ${LABEL:-test}
|
||||||
|
stop_signal: SIGTERM
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "echo | nc -w 5 localhost:80"
|
test: "echo | nc -w 5 localhost:80"
|
||||||
interval: 2s
|
interval: 2s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user