Skip to content

Commit

Permalink
Add "MVP" devcontainer configuration
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
csutter committed Oct 16, 2023
1 parent 4660e45 commit 00e48ca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}

0 comments on commit 00e48ca

Please sign in to comment.