1- // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2- // https://github.com/microsoft/vscode-dev-containers /tree/v0.245.2/containers/rust
1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates /tree/main/src/dotnet
33{
4- "name" : " C# (.NET)" ,
5- "build" : {
6- "dockerfile" : " Dockerfile" ,
7- "args" : {
8- // Use the VARIANT arg to pick a Debian OS version: buster, bullseye
9- // Use bookworm when on local on arm64/Apple Silicon.
10- "VARIANT" : " 8.0-bookworm" ,
11- "NODE_VERSION" : " none"
12- }
13- },
14- // Features to add to the dev container. More info: https://containers.dev/features.
15- "features" : {
16- "ghcr.io/devcontainers/features/powershell:1" : {},
17- "ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {},
18- "ghcr.io/devcontainers/features/kubectl-helm-minikube:1" : {
19- "version" : " latest" ,
20- "helm" : " 3.9.2" ,
21- "minikube" : " none"
22- },
23- "ghcr.io/eitsupi/devcontainer-features/jq-likes:2" : {
24- "jqVersion" : " latest" ,
25- "yqVersion" : " latest"
26- }
27- },
28- // Configure tool-specific properties.
29- "customizations" : {
30- // Configure properties specific to VS Code.
31- "vscode" : {
32- // Add the IDs of extensions you want installed when the container is created.
33- "extensions" : [
34- " ms-dotnettools.csharp" ,
35- " ms-vscode.powershell" ,
36- " ms-vscode.azurecli" ,
37- " ms-azuretools.vscode-docker" ,
38- " ms-vscode-remote.vscode-remote-extensionpack" ,
39- " mutantdino.resourcemonitor"
40- ]
41- }
42- },
43- // Use 'forwardPorts' to make a list of ports inside the container available locally.
44- // "forwardPorts": [],
45- // Use 'postCreateCommand' to run commands after the container is created.
46- // "postCreateCommand": "rustc --version",
47- "postCreateCommand" : " sh . ./.devcontainer/postCreateCommand.sh" ,
48- "postStartCommand" : " sh . ./.devcontainer/postStartCommand.sh" ,
49- // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50- "remoteUser" : " vscode"
4+ "name" : " C# (.NET)" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/dotnet:latest" ,
7+ // Features to add to the dev container. More info: https://containers.dev/features.
8+ "features" : {
9+ "ghcr.io/devcontainers-extra/features/pre-commit:2" : {},
10+ "ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {},
11+ "ghcr.io/devcontainers/features/kubectl-helm-minikube:1" : {
12+ "version" : " latest" ,
13+ "helm" : " 3.9.2" ,
14+ "minikube" : " none"
15+ },
16+ "ghcr.io/eitsupi/devcontainer-features/jq-likes:2" : {
17+ "jqVersion" : " latest" ,
18+ "yqVersion" : " latest"
19+ }
20+ },
21+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
22+ // "forwardPorts": [5000, 5001],
23+ // "portsAttributes": {
24+ // "5001": {
25+ // "protocol": "https"
26+ // }
27+ // }
28+ // Use 'postCreateCommand' to run commands after the container is created.
29+ "postCreateCommand" : " sh . ./.devcontainer/postCreateCommand.sh" ,
30+ "postStartCommand" : " sh . ./.devcontainer/postStartCommand.sh" ,
31+ // Configure tool-specific properties.
32+ "customizations" : {
33+ // Configure properties specific to VS Code.
34+ "vscode" : {
35+ // Set *default* container specific settings.json values on container create.
36+ "settings" : {},
37+ // Add the IDs of extensions you want installed when the container is created.
38+ "extensions" : [
39+ " ms-vscode.powershell" ,
40+ " ms-vscode.azurecli" ,
41+ " ms-azuretools.vscode-docker" ,
42+ " ms-vscode-remote.vscode-remote-extensionpack" ,
43+ " mutantdino.resourcemonitor" ,
44+ " usernamehw.errorlens" ,
45+ " davidanson.vscode-markdownlint" ,
46+ " ms-dotnettools.csharp"
47+ ]
48+ }
49+ },
50+ "mounts" : [
51+ " source=${localEnv:HOME}${localEnv:USERPROFILE}/source/github,target=/workspaces,type=bind,consistency=cached" ,
52+ " source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/vscode/.kube,type=bind"
53+ ]
54+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
55+ // "remoteUser": "root"
5156}
0 commit comments