mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
Improve containers stopping performance by handling SIGTERM
This commit is contained in:
parent
b9adb6f854
commit
fef00b96f1
4 changed files with 32 additions and 6 deletions
|
@ -27,7 +27,7 @@ do
|
|||
echo "Done with package $pkg"
|
||||
elif [[ $CI -eq 1 ]]; then
|
||||
echo "Commit SHA: $pkg"
|
||||
|
||||
|
||||
cd ..
|
||||
echo "Changed files:"
|
||||
git diff --name-only $pkg^1 $pkg
|
||||
|
@ -52,8 +52,8 @@ echo "Index created"
|
|||
|
||||
if [[ $SERVER -eq 1 ]]; then
|
||||
echo "Starting index server.."
|
||||
python3 -m http.server
|
||||
exec python3 /serve.py
|
||||
else
|
||||
echo "Skipping starting index server"
|
||||
fi
|
||||
exit 0
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue