mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
The previous .devcontainer.json configuration was outdated and contained personal configurations that were not needed to run a dev container. This updates the structure so that it's put in .devcontainer/base/devcontainer.json based on the recommended setup in GitHub's documentation. The official image now publishes both arm64 and amd64 images, and devcontainer tools should be able to pick up the right one without extra arguments. This also adds documentation on how to use the container. Refs: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#devcontainerjson PR-URL: https://github.com/nodejs/node/pull/60472 Refs: https://github.com/nodejs/devcontainer Refs: https://hub.docker.com/r/nodejs/devcontainer Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
12 lines
430 B
JSON
12 lines
430 B
JSON
{
|
|
"name": "Node.js Dev Container",
|
|
"image": "nodejs/devcontainer:nightly",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/home/developer/nodejs/node,type=bind,consistency=cached",
|
|
"workspaceFolder": "/home/developer/nodejs/node",
|
|
"remoteUser": "developer",
|
|
"mounts": [
|
|
"source=node-devcontainer-cache,target=/home/developer/nodejs/node/out,type=volume"
|
|
],
|
|
"postCreateCommand": "git restore-mtime"
|
|
}
|