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:
Ricardo Branco 2025-09-05 23:14:44 +02:00 committed by Nicolas De loof
parent db260938c1
commit a32dc3da72
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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