Skip to content

Commit 7e67d3b

Browse files
committed
Re-gen of devcontainer config
1 parent c72e7ba commit 7e67d3b

File tree

1 file changed

+61
-76
lines changed

1 file changed

+61
-76
lines changed

.devcontainer/devcontainer.json

Lines changed: 61 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,64 @@
11
// 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/ubuntu
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/powershell
3+
// cspell: disable
34
{
4-
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
5-
"name": "PSRule Demo on Ubuntu Container",
6-
// Features to add to the dev container. More info: https://containers.dev/features.
7-
"features": {
8-
"ghcr.io/devcontainers/features/git:1": {
9-
"ppa": true,
10-
"version": "latest"
11-
},
12-
"ghcr.io/devcontainers/features/github-cli:1": {
13-
"installDirectlyFromGitHubRelease": true,
14-
"version": "latest"
15-
},
16-
"ghcr.io/devcontainers/features/powershell:1": {
17-
"version": "latest",
18-
"modules": "Az,PSRule.Rules.Azure"
19-
},
20-
"azure-cli": {
21-
"version": "latest"
22-
},
23-
"ghcr.io/devcontainers/features/azure-cli:1": {
24-
"installBicep": true,
25-
"version": "latest"
26-
},
27-
"ghcr.io/devcontainers/features/dotnet:1": {
28-
"runtimeOnly": true,
29-
"version": "6"
30-
}
31-
},
32-
33-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
34-
// "forwardPorts": [],
35-
// Use 'postCreateCommand' to run commands after the container is created.
36-
// "postCreateCommand": "uname -a",
37-
// Configure tool-specific properties.
38-
"customizations": {
39-
"vscode": {
40-
"extensions": [
41-
"ms-azuretools.vscode-docker",
42-
"ms-vscode.powershell",
43-
"bewhite.psrule-vscode-preview",
44-
"msazurermtools.azurerm-vscode-tools",
45-
"ms-azuretools.vscode-bicep",
46-
"ms-azure-devops.azure-pipelines",
47-
"github.vscode-github-actions",
48-
"shuworks.vscode-table-formatter",
49-
"streetsidesoftware.code-spell-checker",
50-
"wmaurer.change-case",
51-
"esbenp.prettier-vscode",
52-
"davidanson.vscode-markdownlint",
53-
"vsls-contrib.codetour",
54-
"ms-azuretools.vscode-azureresourcegroups",
55-
"editorconfig.editorconfig"
56-
],
57-
"settings": {
58-
"terminal.integrated.defaultProfile.linux": "pwsh",
59-
"terminal.integrated.profiles.linux": {
60-
"pwsh": {
61-
"path": "/opt/microsoft/powershell/7/pwsh"
62-
}
63-
},
64-
"PSRule.notifications.showPowerShellExtension": false,
65-
"PSRule.notifications.showChannelUpgrade": false
66-
}
67-
}
68-
},
69-
"onCreateCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-build.ps1",
70-
"postStartCommand": "/opt/microsoft/powershell/7/pwsh -f .devcontainer/container-start.ps1",
71-
"build": {
72-
"dockerfile": "Dockerfile",
73-
"args": {
74-
"VARIANT": "6.0-bullseye-slim"
75-
}
76-
},
77-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
78-
"remoteUser": "vscode"
5+
"name": "PowerShell",
6+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
7+
"image": "mcr.microsoft.com/powershell:lts-debian-11",
8+
"features": {
9+
"ghcr.io/devcontainers/features/common-utils:2": {
10+
"installZsh": "true",
11+
"username": "vscode",
12+
"upgradePackages": "false",
13+
"nonFreePackages": "true"
14+
},
15+
"ghcr.io/devcontainers/features/azure-cli:1": {
16+
"installBicep": true,
17+
"version": "latest"
18+
},
19+
"ghcr.io/devcontainers/features/dotnet:2": {
20+
"version": "latest"
21+
},
22+
"ghcr.io/devcontainers/features/git:1": {
23+
"ppa": true,
24+
"version": "latest"
25+
},
26+
"ghcr.io/devcontainers/features/github-cli:1": {
27+
"installDirectlyFromGitHubRelease": true,
28+
"version": "latest"
29+
}
30+
},
31+
"postCreateCommand": "sudo chsh vscode -s \"$(which pwsh)\"",
32+
// Configure tool-specific properties.
33+
"customizations": {
34+
// Configure properties specific to VS Code.
35+
"vscode": {
36+
// Set *default* container specific settings.json values on container create.
37+
"settings": {
38+
"terminal.integrated.defaultProfile.linux": "pwsh"
39+
},
40+
// Add the IDs of extensions you want installed when the container is created.
41+
"extensions": [
42+
"ms-vscode.powershell",
43+
"ms-azuretools.vscode-docker",
44+
"bewhite.psrule-vscode",
45+
"msazurermtools.azurerm-vscode-tools",
46+
"ms-azuretools.vscode-bicep",
47+
"ms-azure-devops.azure-pipelines",
48+
"github.vscode-github-actions",
49+
"shuworks.vscode-table-formatter",
50+
"streetsidesoftware.code-spell-checker",
51+
"wmaurer.change-case",
52+
"esbenp.prettier-vscode",
53+
"davidanson.vscode-markdownlint",
54+
"vsls-contrib.codetour",
55+
"ms-azuretools.vscode-azureresourcegroups",
56+
"editorconfig.editorconfig"
57+
]
58+
}
59+
}
60+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
61+
// "forwardPorts": [],
62+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
63+
// "remoteUser": "root"
7964
}

0 commit comments

Comments
 (0)