From 605d484e6b7594bbc762ab61330595126fdc3f69 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Fri, 19 Dec 2025 15:40:56 +0100 Subject: [PATCH 1/6] Increase JS memory heap for Gulp build Signed-off-by: Artem Zatsarynnyi --- build/dockerfiles/linux-libc-ubi8.Dockerfile | 2 +- build/dockerfiles/linux-libc-ubi9.Dockerfile | 2 +- build/dockerfiles/linux-musl.Dockerfile | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/dockerfiles/linux-libc-ubi8.Dockerfile b/build/dockerfiles/linux-libc-ubi8.Dockerfile index 122ae3c4c7d..b8b73224c28 100644 --- a/build/dockerfiles/linux-libc-ubi8.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi8.Dockerfile @@ -78,7 +78,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index 0bfebb2245d..5edb3ca7191 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -77,7 +77,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-musl.Dockerfile b/build/dockerfiles/linux-musl.Dockerfile index 4b37aaed4e9..b350e63f569 100644 --- a/build/dockerfiles/linux-musl.Dockerfile +++ b/build/dockerfiles/linux-musl.Dockerfile @@ -58,7 +58,7 @@ RUN NODE_VERSION=$(cat /checode-compilation/remote/.npmrc | grep target | cut -d # workaround to fix build && cp -r /checode-compilation/node_modules/tslib /checode-compilation/remote/node_modules/ -RUN NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min +RUN NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min RUN cp -r ../vscode-reh-web-linux-alpine /checode RUN chmod a+x /checode/out/server-main.js \ diff --git a/package.json b/package.json index 5196fef4d6e..d69a83778be 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "prepare": "cd code && npm install && npm run download-builtin-extensions", "watch": "cd code && npm run watch", "server": "cd code && VSCODE_DEV=1 node out/server-main.js --host 0.0.0.0 --without-connection-token", - "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", - "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", + "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", + "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", "rebuild-native-modules": "cd code && npm rebuild" }, "license": "EPL-2.0" From b5ffb36146b361d2d48aebf06a5de1466bbb29aa Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Fri, 19 Dec 2025 16:43:09 +0100 Subject: [PATCH 2/6] Decrease VSCODE_MANGLE_WORKERS to 2 from the default 4 Signed-off-by: Artem Zatsarynnyi --- build/dockerfiles/linux-libc-ubi8.Dockerfile | 2 +- build/dockerfiles/linux-libc-ubi9.Dockerfile | 2 +- build/dockerfiles/linux-musl.Dockerfile | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/dockerfiles/linux-libc-ubi8.Dockerfile b/build/dockerfiles/linux-libc-ubi8.Dockerfile index b8b73224c28..94a71e73965 100644 --- a/build/dockerfiles/linux-libc-ubi8.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi8.Dockerfile @@ -78,7 +78,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index 5edb3ca7191..3bc7b258f33 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -77,7 +77,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-musl.Dockerfile b/build/dockerfiles/linux-musl.Dockerfile index b350e63f569..f33f686c64a 100644 --- a/build/dockerfiles/linux-musl.Dockerfile +++ b/build/dockerfiles/linux-musl.Dockerfile @@ -58,7 +58,7 @@ RUN NODE_VERSION=$(cat /checode-compilation/remote/.npmrc | grep target | cut -d # workaround to fix build && cp -r /checode-compilation/node_modules/tslib /checode-compilation/remote/node_modules/ -RUN NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min +RUN VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min RUN cp -r ../vscode-reh-web-linux-alpine /checode RUN chmod a+x /checode/out/server-main.js \ diff --git a/package.json b/package.json index d69a83778be..5196fef4d6e 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "prepare": "cd code && npm install && npm run download-builtin-extensions", "watch": "cd code && npm run watch", "server": "cd code && VSCODE_DEV=1 node out/server-main.js --host 0.0.0.0 --without-connection-token", - "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", - "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", + "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", + "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", "rebuild-native-modules": "cd code && npm rebuild" }, "license": "EPL-2.0" From 56ceef2abb5f29afb3a2b9e060aff3b63494b4f4 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Fri, 19 Dec 2025 17:26:22 +0100 Subject: [PATCH 3/6] Increase JS memory heap for Gulp build Signed-off-by: Artem Zatsarynnyi --- build/dockerfiles/linux-libc-ubi8.Dockerfile | 2 +- build/dockerfiles/linux-libc-ubi9.Dockerfile | 2 +- build/dockerfiles/linux-musl.Dockerfile | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/dockerfiles/linux-libc-ubi8.Dockerfile b/build/dockerfiles/linux-libc-ubi8.Dockerfile index 94a71e73965..cbaf2d0dbfa 100644 --- a/build/dockerfiles/linux-libc-ubi8.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi8.Dockerfile @@ -78,7 +78,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index 3bc7b258f33..b186be3b49c 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -77,7 +77,7 @@ RUN NODE_ARCH=$(echo "console.log(process.arch)" | node) \ && mkdir -p /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH} \ && echo "caching /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node" \ && cp /usr/bin/node /checode-compilation/.build/node/v${NODE_VERSION}/linux-${NODE_ARCH}/node \ - && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ + && VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-${NODE_ARCH}-min \ && cp -r ../vscode-reh-web-linux-${NODE_ARCH} /checode \ # cache shared libs from this image to provide them to a user's container && mkdir -p /checode/ld_libs \ diff --git a/build/dockerfiles/linux-musl.Dockerfile b/build/dockerfiles/linux-musl.Dockerfile index f33f686c64a..9dbf91bb59a 100644 --- a/build/dockerfiles/linux-musl.Dockerfile +++ b/build/dockerfiles/linux-musl.Dockerfile @@ -58,7 +58,7 @@ RUN NODE_VERSION=$(cat /checode-compilation/remote/.npmrc | grep target | cut -d # workaround to fix build && cp -r /checode-compilation/node_modules/tslib /checode-compilation/remote/node_modules/ -RUN VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=4096" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min +RUN VSCODE_MANGLE_WORKERS=2 NODE_OPTIONS="--max-old-space-size=8192" ./node_modules/.bin/gulp vscode-reh-web-linux-alpine-min RUN cp -r ../vscode-reh-web-linux-alpine /checode RUN chmod a+x /checode/out/server-main.js \ diff --git a/package.json b/package.json index 5196fef4d6e..d69a83778be 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "prepare": "cd code && npm install && npm run download-builtin-extensions", "watch": "cd code && npm run watch", "server": "cd code && VSCODE_DEV=1 node out/server-main.js --host 0.0.0.0 --without-connection-token", - "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", - "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", + "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", + "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", "rebuild-native-modules": "cd code && npm rebuild" }, "license": "EPL-2.0" From e39872bd18ed51fcdf68ec231b42d2fe482ca6cc Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Fri, 19 Dec 2025 18:49:18 +0100 Subject: [PATCH 4/6] Revert max-old-space-size in build scripts --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d69a83778be..5196fef4d6e 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "prepare": "cd code && npm install && npm run download-builtin-extensions", "watch": "cd code && npm run watch", "server": "cd code && VSCODE_DEV=1 node out/server-main.js --host 0.0.0.0 --without-connection-token", - "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", - "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", + "build": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64", + "build:min": "cd code && VSCODE_MANGLE_WORKERS=2 node --max-old-space-size=4096 ./node_modules/gulp/bin/gulp.js vscode-reh-web-linux-x64-min", "rebuild-native-modules": "cd code && npm rebuild" }, "license": "EPL-2.0" From 8b79bebc0a31b62e263242b6bc4f534814dedb7e Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Fri, 19 Dec 2025 19:20:59 +0100 Subject: [PATCH 5/6] Update rpm links in the ubi9 Dockerfile Signed-off-by: Artem Zatsarynnyi --- build/dockerfiles/linux-libc-ubi9.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index b186be3b49c..c6e1fea50b1 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -113,8 +113,8 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ ARCH=$(uname -m) && \ yum install --nobest -y procps \ https://rpmfind.net/linux/epel/9/Everything/x86_64/Packages/e/epel-release-9-10.el9.noarch.rpm \ - https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-32.el9.noarch.rpm \ - https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-32.el9.noarch.rpm; \ + https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-24.el9.noarch.rpm \ + https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-24.el9.noarch.rpm; \ fi RUN if [ "$(uname -m)" = "x86_64" ]; then \ From 7631dd3ac4ad290081098d19c5c58ec92f88d8d2 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Sat, 20 Dec 2025 21:09:09 +0100 Subject: [PATCH 6/6] Update RPM package URLs in Dockerfile --- build/dockerfiles/linux-libc-ubi9.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/dockerfiles/linux-libc-ubi9.Dockerfile b/build/dockerfiles/linux-libc-ubi9.Dockerfile index c6e1fea50b1..b186be3b49c 100644 --- a/build/dockerfiles/linux-libc-ubi9.Dockerfile +++ b/build/dockerfiles/linux-libc-ubi9.Dockerfile @@ -113,8 +113,8 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ ARCH=$(uname -m) && \ yum install --nobest -y procps \ https://rpmfind.net/linux/epel/9/Everything/x86_64/Packages/e/epel-release-9-10.el9.noarch.rpm \ - https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-24.el9.noarch.rpm \ - https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-24.el9.noarch.rpm; \ + https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-32.el9.noarch.rpm \ + https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-32.el9.noarch.rpm; \ fi RUN if [ "$(uname -m)" = "x86_64" ]; then \