Implement Open Runtimes v3 support

This commit is contained in:
Matej Bačo
2023-02-02 19:21:00 +00:00
parent 543246c50b
commit 75c7d94633
8 changed files with 108 additions and 80 deletions
+4
View File
@@ -64,6 +64,7 @@ class Executor
string $projectId,
string $source,
string $image,
string $version,
bool $remove = false,
string $entrypoint = '',
string $workdir = '',
@@ -86,6 +87,7 @@ class Executor
'commands' => $commands,
'cpus' => $this->cpus,
'memory' => $this->memory,
'version' => $version,
];
$timeout = (int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900);
@@ -124,6 +126,7 @@ class Executor
string $image,
string $source,
string $entrypoint,
string $version
) {
$runtimeId = "$projectId-$deploymentId";
$route = '/runtimes/' . $runtimeId . '/execution';
@@ -139,6 +142,7 @@ class Executor
'entrypoint' => $entrypoint,
'cpus' => $this->cpus,
'memory' => $this->memory,
'version' => $version,
];
$timeout = (int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900);