chore: add dev container

This commit is contained in:
Zixuan Chen 2022-11-15 10:07:18 +00:00
parent c9e3a67963
commit 5355f47bc2

View file

@ -1,23 +1,23 @@
{ {
"name": "Rust", "name": "Rust",
"image": "mcr.microsoft.com/devcontainers/rust:1-bullseye", "image": "mcr.microsoft.com/devcontainers/rust:1-bullseye",
"features": { "features": {
"ghcr.io/devcontainers/features/node:1": {}, "ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers-contrib/features/deno:1": {} "ghcr.io/devcontainers-contrib/features/deno:1": {}
}, },
// Features to add to the dev container. More info: https://containers.dev/implementors/features. // Features to add to the dev container. More info: https://containers.dev/implementors/features.
// "features": {}, // "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [], // "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash scripts/install-dev-tools.sh" "postCreateCommand": "bash scripts/install-dev-tools.sh"
// Configure tool-specific properties. // Configure tool-specific properties.
// "customizations": {}, // "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root" // "remoteUser": "root"
} }