42 lines
1.7 KiB
JSON
42 lines
1.7 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
|
{
|
|
"name": "Node.js & TypeScript",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
|
// mount the ssh public identity file for the this project
|
|
// I limit to just what I need and not the whole ~/.ssh folder
|
|
"mounts": [
|
|
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/personal_id_rsa.pub,target=/home/vscode/.hostssh/id_rsa.pub,readonly,type=bind,consistency=cached"
|
|
],
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/devcontainers-contrib/features/node-asdf": {},
|
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"mechatroner.rainbow-csv",
|
|
"ms-vscode-remote.remote-containers",
|
|
"dbaeumer.vscode-eslint",
|
|
"GitHub.copilot",
|
|
"GitHub.copilot-chat",
|
|
"esbenp.prettier-vscode",
|
|
"rvest.vs-code-prettier-eslint",
|
|
"bierner.markdown-mermaid",
|
|
"stylelint.vscode-stylelint"
|
|
]
|
|
}
|
|
},
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "/bin/bash ./.devcontainer/scripts/tools.sh >> ~/post-create-tools.log"
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|