-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevcontainer.json
99 lines (96 loc) · 3.61 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": ".NET on Azure",
// See complete list https://hub.docker.com/_/microsoft-dotnet-sdk/
// Or https://mcr.microsoft.com/v2/dotnet/sdk/tags/list
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
// Http
8080,
// Https
8081
],
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root",
// Add more features. See complete list https://github.com/devcontainers/features
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false,
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/dotnet:2": "lts",
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/azure-cli:1": {
"extensions": "azure-devops, containerapp, staticwebapp"
},
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/dapr/cli/dapr-cli:0": {},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
"minikube": "none"
},
// Read more https://github.com/hashicorp/vscode-terraform/issues/1524#issuecomment-1614892272
"ghcr.io/devcontainers/features/terraform:1": {
"version": "latest",
"tflint": "latest",
"terragrunt": "latest"
}
},
"containerEnv": {
// Set dotnet CLI environment settings.
"DOTNET_RUNNING_IN_CONTAINER": "1",
"DOTNET_USE_POLLING_FILE_WATCHER": "1",
"DOTNET_CLI_TELEMETRY_OPTOUT": "1",
"DOTNET_GENERATE_ASPNET_CERTIFICATE": "1",
"DOTNET_NOLOGO": "1",
// Set ASP.NET environment settings.
"ASPNETCORE_URLS": "http://+:8080;https://+:8081",
"ASPNETCORE_ENVIRONMENT": "Development"
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
// Read more https://github.com/microsoft/vscode-dotnettools/issues/562
"ms-dotnettools.csdevkit",
"ms-vscode.vscode-node-azure-pack",
"ms-mssql.mssql",
"humao.rest-client",
"redhat.vscode-yaml",
"editorconfig.editorconfig",
"albert.tabout",
"streetsidesoftware.code-spell-checker",
"redhat.fabric8-analytics"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"bicep.enableSurveys": false,
"redhat.telemetry.enabled": false,
"rest-client.previewOption": "exchange",
// Fix for ARM-based devices.
// Read more https://github.com/OmniSharp/omnisharp-vscode/issues/4348#issuecomment-1003867594
"omnisharp.useModernNet": true,
"omnisharp.organizeImportsOnFormat": true,
"omnisharp.useEditorFormattingSettings": true,
"omnisharp.enableEditorConfigSupport": true,
"razor.disabled": true
}
}
},
// Use 'updateContentCommand' to run commands after the container is successfully created.
"updateContentCommand": {
"dev-certs": "dotnet dev-certs https --clean && dotnet dev-certs https -t",
"clean": "rm -rf **/bin **/obj"
},
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": {
// "init": "dapr init",
// "restore": "dotnet restore --no-cache --force"
// }
}