From 43b0455364f996d8a77c775691a2b687d5370878 Mon Sep 17 00:00:00 2001 From: johngreen Date: Wed, 13 May 2026 15:24:25 +0900 Subject: [PATCH] =?UTF-8?q?fix(CI):=20frontend=20build=20OOM=20=EB=B0=A9?= =?UTF-8?q?=EC=A7=80=20=E2=80=94=20NODE=5FOPTIONS=3D--max-old-space-size?= =?UTF-8?q?=3D4096?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main 의 최근 8연속 build 실패 (run 113~120) 원인이 docker build 단계의 OOM Killed. 진단: - wace 호스트 32GB / available 24GB 충분, 시스템 OOM 기록 없음 - act_runner systemd MemoryMax=infinity, config container.options=null (제한 없음) - 그러나 Next.js build V8 heap spike (5-8GB+) 가 다른 30개 동시 가동 서비스 (k3s/mailu/nextcloud/mattermost 등) 와 충돌 - Committed_AS 21.6 GB / Limit 24.8 GB 한계 — page touch 시 oom-killer 가 build process kill - 결과: 28분 빌드 후 Killed → 8연속 main 배포 실패 조치: - builder stage 에 NODE_OPTIONS=--max-old-space-size=4096 명시 → V8 heap 4GB 로 cap - build process 가 알아서 절제 → OOM killer 트리거 안 됨 Co-Authored-By: Claude Opus 4.7 (1M context) --- docker/deploy/frontend.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/deploy/frontend.Dockerfile b/docker/deploy/frontend.Dockerfile index 46490573..6c0736f5 100644 --- a/docker/deploy/frontend.Dockerfile +++ b/docker/deploy/frontend.Dockerfile @@ -34,6 +34,7 @@ RUN echo "Build SHA: $GIT_SHA" # Build the application ENV DISABLE_ESLINT_PLUGIN=true +ENV NODE_OPTIONS=--max-old-space-size=4096 RUN npm run build # Production image, copy all the files and run next