Notes for container isolation
This commit is contained in:
parent
aebc355848
commit
f810643512
|
@ -134,6 +134,10 @@ $utopia->get('/console/webhooks')
|
|||
->action(function () use ($layout) {
|
||||
$page = new View(__DIR__.'/../../views/console/webhooks/index.phtml');
|
||||
|
||||
$page
|
||||
->setParam('events', Config::getParam('events', []))
|
||||
;
|
||||
|
||||
$layout
|
||||
->setParam('title', APP_NAME.' - Webhooks')
|
||||
->setParam('body', $page);
|
||||
|
@ -296,6 +300,10 @@ $utopia->get('/console/functions/function')
|
|||
->action(function () use ($layout) {
|
||||
$page = new View(__DIR__.'/../../views/console/functions/function.phtml');
|
||||
|
||||
$page
|
||||
->setParam('events', Config::getParam('events', []))
|
||||
;
|
||||
|
||||
$layout
|
||||
->setParam('title', APP_NAME.' - Function')
|
||||
->setParam('body', $page);
|
||||
|
|
|
@ -58,6 +58,14 @@ class FunctionsV1
|
|||
|
||||
$start = microtime(true);
|
||||
|
||||
/**
|
||||
* Limit CPU Usage
|
||||
* Limit Memory Usage
|
||||
* Limit Network Usage
|
||||
* Make sure no access to redis, mariadb, influxdb or other system services
|
||||
* Make sure no access to NFS server / storage volumes
|
||||
* Access Appwrite REST from internal network for improved performance
|
||||
*/
|
||||
Console::execute("docker run \
|
||||
--rm \
|
||||
-v $(pwd):/app \
|
||||
|
|
Loading…
Reference in a new issue