Limit container CPU and memory
CI / smoke-test (push) Successful in 52s

This commit is contained in:
Mikhail Lobanov
2026-10-14 22:17:45 +03:00
parent cf0bd3f0c2
commit b49e4b4b18
+6
View File
@@ -74,6 +74,8 @@ jobs:
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
--memory=256m \
--cpus=0.5 \
-p 127.0.0.1:8000:8000 \
"$IMAGE"; then
echo "New container started"
@@ -85,6 +87,8 @@ jobs:
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
--memory=256m \
--cpus=0.5 \
-p 127.0.0.1:8000:8000 \
"$OLD_IMAGE"
exit 1
@@ -113,6 +117,8 @@ jobs:
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
--memory=256m \
--cpus=0.5 \
-p 127.0.0.1:8000:8000 \
"$OLD_IMAGE"
exit 1