Merge pull request #1671 from nextcloud/enh/1662/add-talk-ulimit

add ulimit for the talk container due to a bug in libwebsockets
This commit is contained in:
Simon L 2023-01-04 16:03:14 +01:00 committed by GitHub
commit 57b5ea53e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,6 +423,10 @@ class DockerActionManager
if(count($mounts) > 0) {
$requestBody['HostConfig']['Mounts'] = $mounts;
}
// Special things for the talk container which should not be exposed in the containers.json
} elseif ($container->GetIdentifier() === 'nextcloud-aio-talk') {
// This is needed due to a bug in libwebsockets which cannot handle unlimited ulimits
$requestBody['HostConfig']['Ulimits'] = [["Name" => "nofile", "Hard" => 200000, "Soft" => 200000]];
}
$url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier());