Skip to content

Commit a32dc3d

Browse files
ricardobranco777ndeloof
authored andcommitted
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 <[email protected]>
1 parent db26093 commit a32dc3d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/e2e/fixtures/dependencies/recreate-no-deps.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99

1010
nginx:
1111
image: nginx:alpine
12+
stop_signal: SIGTERM
1213
healthcheck:
1314
test: "echo | nc -w 5 localhost:80"
1415
interval: 2s

pkg/e2e/fixtures/restart-test/compose-depends-on.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ services:
33
image: nginx:alpine
44
init: true
55
command: tail -f /dev/null
6+
stop_signal: SIGTERM
67
depends_on:
78
nginx: {condition: service_healthy, restart: true}
89

910
no-restart:
1011
image: nginx:alpine
1112
init: true
1213
command: tail -f /dev/null
14+
stop_signal: SIGTERM
1315
depends_on:
1416
nginx: { condition: service_healthy }
1517

1618
nginx:
1719
image: nginx:alpine
1820
labels:
1921
TEST: ${LABEL:-test}
22+
stop_signal: SIGTERM
2023
healthcheck:
2124
test: "echo | nc -w 5 localhost:80"
2225
interval: 2s

0 commit comments

Comments
 (0)