From a0b0989886f56e7ad52a050b07b98d93f2fd1122 Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Wed, 17 Jan 2024 12:51:54 -0800 Subject: [PATCH] Limit yarn concurrency on 32bit - improves ci stability --- docker/edge-alpine.Dockerfile | 1 + docker/edge-ubuntu.Dockerfile | 1 + docker/stable-alpine.Dockerfile | 1 + docker/stable-ubuntu.Dockerfile | 1 + 4 files changed, 4 insertions(+) diff --git a/docker/edge-alpine.Dockerfile b/docker/edge-alpine.Dockerfile index 96c5bd18b..6806d64f6 100644 --- a/docker/edge-alpine.Dockerfile +++ b/docker/edge-alpine.Dockerfile @@ -3,6 +3,7 @@ RUN apk add --no-cache nodejs yarn npm python3 openssl build-base jq curl WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi diff --git a/docker/edge-ubuntu.Dockerfile b/docker/edge-ubuntu.Dockerfile index 679843de8..b891e2344 100644 --- a/docker/edge-ubuntu.Dockerfile +++ b/docker/edge-ubuntu.Dockerfile @@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y openssl jq WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN mkdir /public diff --git a/docker/stable-alpine.Dockerfile b/docker/stable-alpine.Dockerfile index 39212df6c..56ce5463f 100644 --- a/docker/stable-alpine.Dockerfile +++ b/docker/stable-alpine.Dockerfile @@ -3,6 +3,7 @@ RUN apk add --no-cache nodejs yarn npm python3 openssl build-base WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi diff --git a/docker/stable-ubuntu.Dockerfile b/docker/stable-ubuntu.Dockerfile index 1f9cee474..a8d1c98cf 100644 --- a/docker/stable-ubuntu.Dockerfile +++ b/docker/stable-ubuntu.Dockerfile @@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y openssl WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production FROM node:18-bullseye-slim as prod