From cb68aacc006d4518ebba989b9dc25fc6c7b4ec15 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Wed, 11 Dec 2024 10:46:27 +0100 Subject: [PATCH] gitlab: increase node heap size limit Without this change gitlab-ee's gitlab-assets fails to build with JavaScript heap out of memory. GitLab's own CI uses different limits between 5 to 10GBs, but 8GBs for asset builds. (see https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/tasks/gitlab/assets.rake#L130) --- pkgs/applications/version-management/gitlab/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/version-management/gitlab/default.nix b/pkgs/applications/version-management/gitlab/default.nix index f1cf80ead01e..bf9353f5d15a 100644 --- a/pkgs/applications/version-management/gitlab/default.nix +++ b/pkgs/applications/version-management/gitlab/default.nix @@ -174,6 +174,7 @@ let FOSS_ONLY = !gitlabEnterprise; SKIP_YARN_INSTALL = 1; + NODE_OPTIONS = "--max-old-space-size=8192"; configurePhase = '' runHook preConfigure