From a794087a866d707e546e80e0d71b13df063402f8 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Fri, 21 Jan 2022 19:56:37 +0100 Subject: [PATCH] fix: increase docker connections --- Dockerfile | 4 ++-- app/executor.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index db5857bb80..a9f1b0fb2a 100755 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ COPY public /usr/local/src/public RUN npm ci RUN npm run build -FROM php:8.0-cli-alpine as compile +FROM php:8.0.14-cli-alpine as compile ARG DEBUG=false ENV DEBUG=$DEBUG @@ -123,7 +123,7 @@ RUN \ ./configure && \ make && make install -FROM php:8.0-cli-alpine as final +FROM php:8.0.14-cli-alpine as final LABEL maintainer="team@appwrite.io" diff --git a/app/executor.php b/app/executor.php index f03e0a6ab2..0d3365fb51 100644 --- a/app/executor.php +++ b/app/executor.php @@ -33,6 +33,7 @@ use Utopia\Cache\Cache; use Utopia\Database\Query; use Utopia\Orchestration\Adapter\DockerCLI; use Utopia\Logger\Log; +use Utopia\Orchestration\Adapter\DockerAPI; use Utopia\Registry\Registry; require_once __DIR__ . '/init.php'; @@ -89,7 +90,7 @@ $orchestrationPool = new ConnectionPool(function () { $orchestration = new Orchestration(new DockerCLI($dockerUser, $dockerPass)); return $orchestration; -}, 2); +}, 6); try { $runtimes = Config::getParam('runtimes');