From 4711b2ce834e76cfd75e91d80dc6d0d304df4e7f Mon Sep 17 00:00:00 2001 From: William Entriken <382183+fulldecent@users.noreply.github.com> Date: Thu, 30 Jul 2026 13:41:19 -0400 Subject: [PATCH 1/3] new approach --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6476170..99727b5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,7 +20,7 @@ } }, // Ruby and Node versions come from .ruby-version and .nvmrc (single source of truth, shared with CI) - "postCreateCommand": "/bin/bash -c 'set -e; rbenv install --skip-existing; rbenv rehash; source \"$NVM_DIR/nvm.sh\"; nvm install; nvm use; npm install -g corepack; corepack enable; corepack prepare yarn@4.18.0 --activate; yarn install --immutable; bundle install'", + "postCreateCommand": "rbenv install --skip-existing && rbenv rehash && . \"$NVM_DIR/nvm.sh\" && nvm install && nvm use && npm install -g corepack && corepack enable && corepack install && yarn install --immutable && bundle install", "customizations": { "vscode": { "extensions": ["html-validate.vscode-html-validate"] From d0972eae2a28518d0290734c39a4514feddc8b9e Mon Sep 17 00:00:00 2001 From: William Entriken <382183+fulldecent@users.noreply.github.com> Date: Thu, 30 Jul 2026 13:47:13 -0400 Subject: [PATCH 2/3] drop feature --- .devcontainer/devcontainer.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 99727b5..28bad5e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,11 +7,6 @@ "name": "Jekyll", "image": "mcr.microsoft.com/devcontainers/jekyll", "features": { - // Install rbenv (no Ruby yet); postCreateCommand installs the version from .ruby-version - "ghcr.io/devcontainers/features/ruby:2": { - "version": "none", - "versionManager": "rbenv" - }, // Install nvm (no Node yet); postCreateCommand installs the version from .nvmrc "ghcr.io/devcontainers/features/node:2": { "version": "none", @@ -20,6 +15,7 @@ } }, // Ruby and Node versions come from .ruby-version and .nvmrc (single source of truth, shared with CI) + // We depend on the Jekyll image having rbenv + ruby-build installed "postCreateCommand": "rbenv install --skip-existing && rbenv rehash && . \"$NVM_DIR/nvm.sh\" && nvm install && nvm use && npm install -g corepack && corepack enable && corepack install && yarn install --immutable && bundle install", "customizations": { "vscode": { From df11875743d023560b11636e562c9b9e728be9a4 Mon Sep 17 00:00:00 2001 From: William Entriken <382183+fulldecent@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:06:15 -0400 Subject: [PATCH 3/3] cut to rvm --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 28bad5e..7f9454b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,8 +15,8 @@ } }, // Ruby and Node versions come from .ruby-version and .nvmrc (single source of truth, shared with CI) - // We depend on the Jekyll image having rbenv + ruby-build installed - "postCreateCommand": "rbenv install --skip-existing && rbenv rehash && . \"$NVM_DIR/nvm.sh\" && nvm install && nvm use && npm install -g corepack && corepack enable && corepack install && yarn install --immutable && bundle install", + // We depend on the Jekyll image having RVM + ruby-build installed + "postCreateCommand": "bash -lc 'set -e; source /usr/local/rvm/scripts/rvm; rvm install \"$(tr -d \"[:space:]\" < .ruby-version)\"; rvm use \"$(tr -d \"[:space:]\" < .ruby-version)\" --default; . \"$NVM_DIR/nvm.sh\"; nvm install; nvm use; npm install -g corepack; corepack enable; corepack install; yarn install --immutable; bundle install'", "customizations": { "vscode": { "extensions": ["html-validate.vscode-html-validate"]