From ae2d141f0d22d1a8db163626ee2e69106963043b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 12 Oct 2022 14:27:13 +0200 Subject: [PATCH] fix: pull does not work remotely on huge compose file --- apps/api/src/lib/services/handlers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 524ebeb86..bcaf07d36 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -1892,7 +1892,9 @@ async function startAppWriteService(request: FastifyRequest) { } } async function startServiceContainers(dockerId, composeFileDestination) { - await executeDockerCmd({ dockerId, command: `docker compose -f ${composeFileDestination} pull` }) + try { + await executeDockerCmd({ dockerId, command: `docker compose -f ${composeFileDestination} pull` }) + } catch (error) { } await executeDockerCmd({ dockerId, command: `docker compose -f ${composeFileDestination} build --no-cache` }) await executeDockerCmd({ dockerId, command: `docker compose -f ${composeFileDestination} create` }) await executeDockerCmd({ dockerId, command: `docker compose -f ${composeFileDestination} start` })