1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Notes for container isolation

This commit is contained in:
Eldad Fux 2020-05-11 09:48:26 +03:00
parent aebc355848
commit f810643512
2 changed files with 16 additions and 0 deletions

View file

@ -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);

View file

@ -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 \