|
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)", |
| 4 | + "name": "Aspire", |
5 | 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 | | - |
8 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
| 6 | + "image": "mcr.microsoft.com/devcontainers/dotnet:dev-10.0-noble", |
9 | 7 | "features": { |
10 | | - "ghcr.io/elanhasson/devcontainer-features/dotnet-aspire-daily:1": {}, |
11 | | - "ghcr.io/devcontainers/features/dotnet:2": {}, |
12 | | - "ghcr.io/devcontainers/features/common-utils:2": {}, |
| 8 | + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
| 9 | + "ghcr.io/devcontainers/features/powershell:1": {}, |
13 | 10 | "ghcr.io/devcontainers/features/node:1": {}, |
14 | | - "ghcr.io/devcontainers/features/git:1": {}, |
15 | | - "ghcr.io/devcontainers/features/docker-in-docker:2": {} |
| 11 | + "ghcr.io/devcontainers/features/python:1": {}, |
| 12 | + "ghcr.io/devcontainers-extra/features/uv:1": {} |
16 | 13 | }, |
| 14 | + |
| 15 | + // "hostRequirements": { |
| 16 | + // "cpus": 8, |
| 17 | + // "memory": "32gb", |
| 18 | + // "storage": "64gb" |
| 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 | + |
| 29 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 30 | + // "postCreateCommand": "dotnet restore", |
| 31 | + "onCreateCommand": "curl -sSL https://aspire.dev/install.sh | bash", |
| 32 | + "postStartCommand": "dotnet dev-certs https --trust", |
17 | 33 | "customizations": { |
18 | 34 | "vscode": { |
19 | 35 | "extensions": [ |
20 | 36 | "ms-dotnettools.csdevkit", |
21 | | - "ms-dotnettools.vscodeintellicode-csharp", |
22 | | - "ms-dotnettools.csharp", |
23 | | - "ms-dotnettools.vscode-dotnet-runtime", |
24 | | - "streetsidesoftware.code-spell-checker", |
25 | | - "esbenp.prettier-vscode", |
26 | | - "EditorConfig.EditorConfig" |
| 37 | + "ms-vscode.vscode-typescript-next", |
| 38 | + "GitHub.copilot-chat", |
| 39 | + "GitHub.copilot" |
27 | 40 | ] |
28 | 41 | } |
29 | | - }, |
30 | | - |
31 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
32 | | - "forwardPorts": [17290, 17290], |
33 | | - "portsAttributes": { |
34 | | - "5001": { |
35 | | - "label": "apiservice" |
36 | | - //"protocol": "https" |
37 | | - } |
38 | | - }, |
39 | | - |
40 | | - // 1. Export it locally using this command: |
41 | | - // * Windows PowerShell: |
42 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
43 | | - // * macOS/Linux terminal: |
44 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
45 | | - // |
46 | | - // 2. Uncomment these 'remoteEnv' lines: |
47 | | - "remoteEnv": { |
48 | | - "ASPNETCORE_Kestrel__Certificates__Default__Password": "P@ssword", |
49 | | - "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx" |
50 | | - }, |
51 | | - // |
52 | | - // 3. Do one of the following depending on your scenario: |
53 | | - // * When using GitHub Codespaces and/or Remote - Containers: |
54 | | - // 1. Start the container |
55 | | - // 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer |
56 | | - // 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https" |
57 | | - // |
58 | | - // * If only using Remote - Containers with a local container, uncomment this line instead: |
59 | | - "mounts": [ |
60 | | - "source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind" |
61 | | - ], |
62 | | - |
63 | | - // Use 'postCreateCommand' to run commands after the container is created. |
64 | | - "postCreateCommand": "", |
| 42 | + } |
| 43 | + // Configure tool-specific properties. |
| 44 | + // "customizations": {}, |
65 | 45 |
|
66 | 46 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
67 | | - "remoteUser": "root" |
| 47 | + // "remoteUser": "root" |
68 | 48 | } |
0 commit comments