From 481206310a6569282588d82522ed4144693f7678 Mon Sep 17 00:00:00 2001 From: Raghu Betina Date: Tue, 1 Dec 2026 03:18:41 -0600 Subject: [PATCH] Match the workshop Node to generated apps The Compiler now generates projects for Node 24.22.3. Installing their dependencies with the older workshop image warns about an unsupported engine. Use the same Node release for their Codespace and production asset build. --- drawing-board/image/.devcontainer.json | 2 +- drawing-board/script/check | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drawing-board/image/.devcontainer.json b/drawing-board/image/.devcontainer.json index c148003..2b764f5 100644 --- a/drawing-board/image/.devcontainer.json +++ b/drawing-board/image/.devcontainer.json @@ -8,7 +8,7 @@ "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { "moby": false }, "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/rails/devcontainer/features/activestorage:1": {}, - "ghcr.io/devcontainers/features/node:1": { "version": "24.18.0" }, + "ghcr.io/devcontainers/features/node:1": { "version": "24.22.3" }, "ghcr.io/devcontainers/features/sshd:1": {}, "ghcr.io/rails/devcontainer/features/postgres-client:1": { "version": "18" } }, diff --git a/drawing-board/script/check b/drawing-board/script/check index 10e3006..3fbc607 100755 --- a/drawing-board/script/check +++ b/drawing-board/script/check @@ -153,7 +153,7 @@ required(!/^\s{6}selenium:\s*$/m.test(compose.split(" selenium:")[0]), "Seleniu required(compose.includes("selenium/standalone-chromium:4.47.0-20260808@sha256:1d3d834a2ce93f26cc0d0ae3c61abd189755b32649f5c356c6c5cf9502aa397e"), "Selenium must use the reviewed release and image digest."); required(!compose.split(" selenium:")[1].split(" postgres:")[0].includes("restart:"), "Selenium must remain stopped after a workspace restart until requested again."); required(dockerfile.includes("ARG RUBY_VERSION=4.0.10"), "The Drawing Board Ruby image must match generated Foundations."); -required(imageConfiguration.features?.["ghcr.io/devcontainers/features/node:1"]?.version === "24.18.0", "The Drawing Board Node image must match generated Foundations."); +required(imageConfiguration.features?.["ghcr.io/devcontainers/features/node:1"]?.version === "24.22.3", "The Drawing Board Node image must match generated Foundations."); required(dockerfile.includes("ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION@sha256:e2833c30003e96c81b35c7eefa48bc34f50f4002790d76ffae5e80f33348b34f"), "Use the reviewed Rails Dev Container image digest."); required(!dockerfile.includes("apt-get install") && !dockerfile.includes("openssh-server"), "OpenSSH lifecycle must remain owned by the maintained sshd Feature."); required(!dockerfile.includes("ENTRYPOINT"), "The Dockerfile must not replace the maintained Feature entrypoint chain.");