From 2f9aa57acf1e4d6b6c7dccb40cde0512709896e0 Mon Sep 17 00:00:00 2001 From: Nitin Katyal Date: Tue, 30 May 2023 13:36:48 -0400 Subject: [PATCH 1/3] Added libgl dependency --- ai/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/ai/Dockerfile b/ai/Dockerfile index fc8b47a..79644e0 100644 --- a/ai/Dockerfile +++ b/ai/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ git \ curl \ software-properties-common \ + libgl1 \ make RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \ From d5f1092d8a844ac56f2314145dd387c9afa5015b Mon Sep 17 00:00:00 2001 From: Nitin Katyal Date: Tue, 30 May 2023 13:38:14 -0400 Subject: [PATCH 2/3] Macbook m1 chip platform supoprt added for linux/x_86_64 --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1b43845..910d8b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ version: '3' services: ai: - build: ./ai/ + platform: linux/x86_64 + build: ./ai/ ports: - "5000:5000" volumes: @@ -16,8 +17,10 @@ services: - ./docs/:/home/docs/ environment: FLASK_ENV: development + PYTHONUNBUFFERED: 1 idea2life: + platform: linux/x86_64 build: ./idea2life/ ports: - "1813:1813" From c2c41b00509437dcf79987fe1d69725a0b66aa47 Mon Sep 17 00:00:00 2001 From: Nitin Katyal Date: Tue, 30 May 2023 13:39:05 -0400 Subject: [PATCH 3/3] Increased timeout of request calls (Should be fixed later) --- idea2life/ui/handlers/ai.js | 2 +- idea2life/ui/handlers/generator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/idea2life/ui/handlers/ai.js b/idea2life/ui/handlers/ai.js index ea36c4f..1143662 100755 --- a/idea2life/ui/handlers/ai.js +++ b/idea2life/ui/handlers/ai.js @@ -30,7 +30,7 @@ function sendImageToAIService(res, imageBase64, filename, callback){ method: 'POST', url: 'http://' + CONFIG.external_services.ai.url + ':' + CONFIG.external_services.ai.port + '/svc', json: requestData, - timeout: 15 * 1000, + timeout: 300 * 1000, encoding: null }, (err, response, body) => { diff --git a/idea2life/ui/handlers/generator.js b/idea2life/ui/handlers/generator.js index 538d450..af8dbb3 100755 --- a/idea2life/ui/handlers/generator.js +++ b/idea2life/ui/handlers/generator.js @@ -29,7 +29,7 @@ function sendXMLToGeneratorService(res, data, callback){ agentOptions: { rejectUnauthorized: false }, - timeout: 15 * 1000 + timeout: 100 * 1000 }, (err, response, body) => { if (err) {