Add --ulimit core=-1 flag to all hardcoded "docker run" comands for KMS

v2
pabloFuente 2025-11-19 19:43:49 +01:00
parent f70a7dc48f
commit 9f13d2b4f2
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ function environmentLaunch {
DOCKER_HOST_IP="$(docker inspect bridge --format '{{with index .IPAM.Config 0}}{{or .Gateway .Subnet}}{{end}}' | sed -r 's|\.0/[[:digit:]]+$|.1|')" DOCKER_HOST_IP="$(docker inspect bridge --format '{{with index .IPAM.Config 0}}{{or .Gateway .Subnet}}{{end}}' | sed -r 's|\.0/[[:digit:]]+$|.1|')"
if [[ "${MEDIA_SERVER}" == "kurento" ]]; then if [[ "${MEDIA_SERVER}" == "kurento" ]]; then
docker run -e KMS_UID=$(id -u) --network=host --detach=true --volume=/opt/openvidu/recordings:/opt/openvidu/recordings "${KURENTO_MEDIA_SERVER_IMAGE}" docker run -e KMS_UID=$(id -u) --network=host --detach=true --volume=/opt/openvidu/recordings:/opt/openvidu/recordings --ulimit core=-1 "${KURENTO_MEDIA_SERVER_IMAGE}"
while true; do while true; do
RC="$(curl \ RC="$(curl \
--silent \ --silent \

View File

@ -676,7 +676,7 @@ public class OpenViduTestE2e {
String command = null; String command = null;
if (MEDIA_SERVER_IMAGE.startsWith(KURENTO_IMAGE)) { if (MEDIA_SERVER_IMAGE.startsWith(KURENTO_IMAGE)) {
log.info("Starting kurento"); log.info("Starting kurento");
command = "docker run -e KMS_UID=$(id -u) --network=host --detach=true" command = "docker run -e KMS_UID=$(id -u) --network=host --detach=true --ulimit core=-1"
+ " --volume=/opt/openvidu/recordings:/opt/openvidu/recordings " + MEDIA_SERVER_IMAGE; + " --volume=/opt/openvidu/recordings:/opt/openvidu/recordings " + MEDIA_SERVER_IMAGE;
} else if (MEDIA_SERVER_IMAGE.startsWith(MEDIASOUP_IMAGE)) { } else if (MEDIA_SERVER_IMAGE.startsWith(MEDIASOUP_IMAGE)) {
log.info("Starting mediaSoup"); log.info("Starting mediaSoup");