|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/dotnet |
3 | 3 | { |
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:1-8.0-bookworm", |
7 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
8 | | - "features": { |
9 | | - "ghcr.io/devcontainers-contrib/features/pre-commit:2": {} |
10 | | - }, |
11 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
12 | | - // "forwardPorts": [5000, 5001], |
13 | | - // "portsAttributes": { |
14 | | - // "5001": { |
15 | | - // "protocol": "https" |
16 | | - // } |
17 | | - // } |
18 | | - // Use 'postCreateCommand' to run commands after the container is created. |
19 | | - "postCreateCommand": "sh . ./.devcontainer/postCreateCommand.sh", |
20 | | - "postStartCommand": "sh . ./.devcontainer/postStartCommand.sh", |
21 | | - // Configure tool-specific properties. |
22 | | - // "customizations": {}, |
23 | | - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
24 | | - "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:1-8.0-bookworm", |
| 7 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 8 | + "features": { |
| 9 | + "ghcr.io/devcontainers-contrib/features/pre-commit:2": {}, |
| 10 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} |
| 11 | + }, |
| 12 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 13 | + // "forwardPorts": [5000, 5001], |
| 14 | + // "portsAttributes": { |
| 15 | + // "5001": { |
| 16 | + // "protocol": "https" |
| 17 | + // } |
| 18 | + // } |
| 19 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 20 | + "postCreateCommand": "sh . ./.devcontainer/postCreateCommand.sh", |
| 21 | + "postStartCommand": "sh . ./.devcontainer/postStartCommand.sh", |
| 22 | + // Configure tool-specific properties. |
| 23 | + // "customizations": {}, |
| 24 | + "mounts": [ |
| 25 | + "source=${localEnv:HOME}${localEnv:USERPROFILE}/source/github,target=/workspaces,type=bind,consistency=cached", |
| 26 | + "source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/vscode/.kube,type=bind" |
| 27 | + ] |
| 28 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 29 | + // "remoteUser": "root" |
25 | 30 | } |
0 commit comments