-
Notifications
You must be signed in to change notification settings - Fork 2
/
devcontainer.json
53 lines (53 loc) · 2.16 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
{
"name": "dotnet dump devcontainer",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--cap-add=SYS_ADMIN",
"--privileged",
"--security-opt",
"seccomp=unconfined"
],
"build": {
// choose the correct one, use `cat /etc/os-release` to be sure about the OS
"dockerfile": "Dockerfile.alpine",
"context": "../",
"args": {
// DOTNET_SDK_IMAGE_TAG should be one from https://hub.docker.com/_/microsoft-dotnet-sdk/
// you can get full tags here: https://mcr.microsoft.com/v2/dotnet/sdk/tags/list
"DOTNET_SDK_IMAGE_TAG": "6.0.405-alpine3.17"
}
},
"overrideCommand": true,
// Set *default* container specific settings.json values on container create.
"customizations": {
"vscode": {
"settings": {
"console": "integratedTerminal",
"dotnet.server.useOmnisharp": true,
"omnisharp.useGlobalMono": "never",
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.path": "latest",
"omnisharp.enableAsyncCompletion": true,
"omnisharp.enableDecompilationSupport": true,
"omnisharp.enableRoslynAnalyzers": true
},
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.dotnet-interactive-vscode",
// if you want to debug native code, you can use C++ debugger with lldb-mi
// "ms-vscode.cpptools"
]
}
},
"remoteUser": "root",
"workspaceFolder": "/_workspace",
"postAttachCommand": "(cat /etc/os-release || cat /usr/lib/os-release) && echo -e \"\\e[1;34mWelcome to dotnet-dumps-devcontainer. Home url: \\e[0m\" && echo -e \"\\e[1;34mhttps://github.com/vchirikov/dotnet-dumps-devcontainer\\e[0m\" ; if [ -f \"/_workspace/dump/dump.coredump\" ]; then cd /_workspace/dump/ && dotnet symbol dump.coredump --debugging --host-only --overwrite ; fi ;",
"mounts": [
"source=${localWorkspaceFolder}/_symbols,target=/_symbols,type=bind,consistency=cached",
"source=${localWorkspaceFolder},target=/_workspace,type=bind,consistency=cached",
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.nuget/packages,target=/_nupkg,type=bind,consistency=cached",
],
"containerEnv": {
"NUGET_FALLBACK_PACKAGES": "/_nupkg",
},
}