From fd42520de45ea702e4fa5095d440e7d62f96886d 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 a devcontainer tooling (such as through a supported editor like Visual Studio Code, or a cloud development environment like Github Codespaces). Includes the Node.js feature (as Middleman depends on having a Javascript engine installed). --- .devcontainer/devcontainer.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..0188866e8e3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ruby +{ + "name": "GOV.UK Developer Docs", + "image": "ruby:3.1.1", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "nodeGypDependencies": true, + "version": "lts", + "nvmVersion": "latest" + } + }, + "forwardPorts": [4567], + "postCreateCommand": "bundle install" +}