|
| 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 |
1 | 3 | { |
2 | | - "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", |
3 | 4 | "name": "PSRule for Azure QuickStart", |
| 5 | + "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-noble", |
4 | 6 | "customizations": { |
5 | 7 | "vscode": { |
6 | 8 | "settings": { |
7 | 9 | "terminal.integrated.defaultProfile.linux": "pwsh", |
8 | 10 | "terminal.integrated.profiles.linux": { |
9 | 11 | "pwsh": { |
10 | | - "path": "/opt/microsoft/powershell/7/pwsh" |
| 12 | + "path": "/usr/bin/pwsh" |
11 | 13 | } |
12 | 14 | } |
13 | 15 | }, |
14 | 16 | "extensions": [ |
15 | | - "ms-dotnettools.csharp", |
| 17 | + "ms-dotnettools.csdevkit", |
16 | 18 | "ms-vscode.powershell", |
| 19 | + "ms-azuretools.vscode-bicep", |
| 20 | + "GitHub.vscode-pull-request-github", |
| 21 | + "github.vscode-github-actions", |
17 | 22 | "bewhite.psrule-vscode", |
18 | 23 | "msazurermtools.azurerm-vscode-tools", |
19 | | - "ms-azuretools.vscode-bicep", |
| 24 | + "davidanson.vscode-markdownlint", |
| 25 | + "streetsidesoftware.code-spell-checker", |
| 26 | + "eamodio.gitlens", |
| 27 | + "ms-sarifvscode.sarif-viewer", |
| 28 | + "github.vscode-github-actions", |
20 | 29 | "ms-azure-devops.azure-pipelines" |
21 | 30 | ] |
22 | 31 | } |
23 | 32 | }, |
24 | 33 | "features": { |
25 | | - "ghcr.io/devcontainers/features/github-cli": { |
| 34 | + "ghcr.io/devcontainers/features/github-cli:1": { |
26 | 35 | "version": "latest" |
27 | 36 | }, |
28 | | - "ghcr.io/devcontainers/features/azure-cli": { |
29 | | - "installBicep": false, |
| 37 | + "ghcr.io/devcontainers/features/azure-cli:1": { |
30 | 38 | "version": "latest" |
31 | | - }, |
32 | | - "ghcr.io/devcontainers/features/powershell": { |
33 | | - "version": "latest", |
34 | | - "modules": "PSRule.Rules.Azure" |
35 | 39 | } |
36 | 40 | }, |
37 | | - "onCreateCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-build.ps1", |
38 | | - "postStartCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-start.ps1", |
39 | | - "build": { |
40 | | - "dockerfile": "Dockerfile" |
41 | | - }, |
42 | | - "remoteUser": "vscode" |
| 41 | + "onCreateCommand": "dotnet tool install --global PowerShell --version 7.4.7 && sudo chown -R vscode:vscode /usr/bin/pwsh && sudo apt-get update -y && sudo apt-get upgrade -y && dotnet restore && ln /usr/bin/pwsh /home/vscode/.dotnet/tools/pwsh --force", |
| 42 | + "updateContentCommand": "/usr/bin/pwsh -f .devcontainer/container-build.ps1", |
| 43 | + "postStartCommand": "/usr/bin/pwsh -f .devcontainer/container-start.ps1" |
43 | 44 | } |
0 commit comments