Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -20,7 +15,8 @@
}
},
// 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'",
// 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"]
Expand Down