1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00
appwrite/app/config/runtimes.php

22 lines
569 B
PHP
Raw Normal View History

2021-04-21 23:02:54 +12:00
<?php
use Utopia\App;
use Appwrite\Runtimes\Runtimes;
2021-08-27 21:21:28 +12:00
use Appwrite\Runtimes\Runtime;
use Utopia\System\System;
2021-04-21 23:02:54 +12:00
/**
* List of Appwrite Cloud Functions supported runtimes
*/
2021-04-22 21:26:10 +12:00
$runtimes = new Runtimes();
2021-04-21 23:02:54 +12:00
2021-04-30 03:08:59 +12:00
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
2021-04-21 23:02:54 +12:00
2021-08-27 21:21:28 +12:00
$node = new Runtime('node', 'Node.js');
$node->addVersion('NG-Latest', 'node:16-alpine-nx', 'node-runtime', [System::X86, System::PPC, System::ARM]);
$runtimes->add($node);
2021-05-19 07:05:44 +12:00
$runtimes = $runtimes->getAll(true, $allowList);
2021-04-21 23:02:54 +12:00
return $runtimes;