|
| 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 | 4 | "name": "PSRule for Azure Developer Codespace",
|
| 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", |
3 | 7 | "customizations": {
|
4 | 8 | "vscode": {
|
5 | 9 | "settings": {
|
6 | 10 | "terminal.integrated.defaultProfile.linux": "pwsh",
|
7 | 11 | "terminal.integrated.profiles.linux": {
|
8 | 12 | "pwsh": {
|
9 |
| - "path": "/opt/microsoft/powershell/7/pwsh" |
| 13 | + "path": "/usr/local/bin/pwsh" |
10 | 14 | }
|
11 |
| - }, |
12 |
| - "powershell.powerShellDefaultVersion": "PowerShell" |
| 15 | + } |
13 | 16 | },
|
14 | 17 | "extensions": [
|
15 |
| - "ms-dotnettools.vscode-dotnet-runtime", |
16 | 18 | "ms-dotnettools.csdevkit",
|
17 | 19 | "ms-vscode.powershell",
|
18 | 20 | "ms-azuretools.vscode-bicep",
|
|
21 | 23 | "github.vscode-github-actions",
|
22 | 24 | "bewhite.psrule-vscode-preview",
|
23 | 25 | "davidanson.vscode-markdownlint",
|
| 26 | + "streetsidesoftware.code-spell-checker", |
24 | 27 | "eamodio.gitlens",
|
25 |
| - "streetsidesoftware.code-spell-checker" |
| 28 | + "ms-sarifvscode.sarif-viewer", |
| 29 | + "github.vscode-github-actions" |
26 | 30 | ]
|
27 | 31 | }
|
28 | 32 | },
|
29 | 33 | "features": {
|
30 |
| - "ghcr.io/devcontainers/features/github-cli": { |
| 34 | + "ghcr.io/devcontainers/features/github-cli:1": { |
31 | 35 | "version": "latest"
|
32 | 36 | },
|
33 |
| - "ghcr.io/devcontainers/features/powershell": { |
| 37 | + "ghcr.io/devcontainers/features/powershell:1": { |
| 38 | + "version": "latest" |
| 39 | + }, |
| 40 | + "ghcr.io/devcontainers/features/python:1": { |
34 | 41 | "version": "latest"
|
35 | 42 | }
|
36 | 43 | },
|
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 |
| - "args": { |
42 |
| - "VARIANT": "7.0-bullseye-slim" |
43 |
| - } |
44 |
| - }, |
45 |
| - "remoteUser": "vscode", |
46 |
| - "forwardPorts": [ |
47 |
| - 8000 |
48 |
| - ] |
| 44 | + "onCreateCommand": "sudo chown -R vscode:vscode /opt/microsoft/powershell/7/pwsh && sudo chmod u+x /opt/microsoft/powershell/7/pwsh && wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && sudo dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb && sudo apt-get update && sudo apt-get install dotnet-sdk-8.0 -y && sudo apt-get install python3-pip -y", |
| 45 | + "updateContentCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-build.ps1", |
| 46 | + "postStartCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-start.ps1" |
49 | 47 | }
|
0 commit comments