From 00e48ca5eae2809466347779b84a7a2043661a67 Mon Sep 17 00:00:00 2001 From: Christian Sutter Date: Mon, 16 Oct 2023 12:46:27 +0000 Subject: [PATCH] Add "MVP" devcontainer configuration Set up a basic Ruby devcontainer with all necessary dependencies, allowing users to run the Middleman app locally without needing anything set up locally other than Docker and devcontainer tooling (such as through a supported editor like Visual Studio Code), or even completely on a cloud development environment like Github Codespaces. Includes the Node.js feature (as Middleman depends on having a Javascript engine installed). --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..5ce7d1b0d0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json +{ + "name": "GOV.UK Developer Docs", + "image": "ruby:3.1", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "nodeGypDependencies": true, + "version": "lts", + "nvmVersion": "latest" + } + }, + "forwardPorts": [4567], + "postCreateCommand": "bundle install", + "customizations": { + "vscode": { + "extensions": [ + "Shopify.ruby-lsp", + "redhat.vscode-yaml" + ] + } + } +}