1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Debug CI 5

This commit is contained in:
Eldad Fux 2020-12-10 17:26:07 +02:00
parent b51945b3c8
commit 732b1e7025
2 changed files with 16 additions and 1 deletions

View file

@ -383,6 +383,22 @@ class FunctionsV1
$executionStart = \microtime(true);
$executionTime = \time();
var_dump("docker run \
-d \
--entrypoint=\"\" \
--cpus=1 \
--memory=128m \
--memory-swap=128m \
--rm \
--name={$container} \
--label appwrite-type=function \
--label appwrite-created=".$executionTime." \
--volume {$tagPathTargetDir}:/tmp:rw \
--workdir /usr/local/src \
".\implode("\n", $vars)."
{$environment['image']} \
sh -c 'mv /tmp/code.tar.gz /usr/local/src/code.tar.gz && tar -zxf /usr/local/src/code.tar.gz --strip 1 && rm /usr/local/src/code.tar.gz && tail -f /dev/null')");
$exitCode = Console::execute("docker run \
-d \
--entrypoint=\"\" \

View file

@ -45,7 +45,6 @@ services:
- traefik.http.routers.appwrite-secure.rule=PathPrefix(`/`)
- traefik.http.routers.appwrite-secure.tls=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- appwrite-uploads:/storage/uploads:rw
- appwrite-cache:/storage/cache:rw
- appwrite-config:/storage/config:rw