Skip to content

Commit 5b2e7c0

Browse files
fix: Use exec for better PID 1 handling (#2156)
Also pass the arguments along to the java execution Previously the arguments were silently dropped Signed-off-by: jakub-bochenski <[email protected]> Signed-off-by: jakub <[email protected]>
1 parent d708407 commit 5b2e7c0

File tree

1 file changed

+6
-1
lines changed
  • docker/spring-cloud-contract-stub-runner-docker

1 file changed

+6
-1
lines changed

docker/spring-cloud-contract-stub-runner-docker/run.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ if [[ "${MESSAGING_TYPE}" != "" ]]; then
1515
fi
1616

1717
echo "Please wait for the dependencies to be downloaded..."
18-
java -Djava.security.egd=file:/dev/./urandom -jar /home/scc/stub-runner-boot.jar ${ADDITIONAL_OPTS}
18+
exec \
19+
java \
20+
-Djava.security.egd=file:/dev/./urandom \
21+
-jar /home/scc/stub-runner-boot.jar \
22+
${ADDITIONAL_OPTS} \
23+
"$@"

0 commit comments

Comments
 (0)