-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevcontainer.json
More file actions
69 lines (69 loc) · 2.92 KB
/
devcontainer.json
File metadata and controls
69 lines (69 loc) · 2.92 KB
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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/cpp
{
"name": "VAF",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"runArgs": [
"--network=host"
],
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"editor.formatOnSave": true,
"json.format.keepLines": true,
"cmake.configureOnEdit": true,
"cmake.configureOnOpen": false,
"C_Cpp.intelliSenseEngine": "disabled",
"ruff.exclude": [
".pdm-build"
],
"ruff.nativeServer": true,
"python.defaultInterpreterPath": "/home/eclipse/.local/share/uv/tools/vaf/bin/python3",
"python.terminal.activateEnvironment": false,
"ruff.interpreter": ["/home/eclipse/.local/share/uv/tools/vaf/bin/python3"]
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"charliermarsh.ruff",
"llvm-vs-code-extensions.vscode-clangd",
"eamodio.gitlens",
"ms-python.python",
"ms-vscode.cmake-tools",
"ms-vscode.cpptools",
"SanaAjani.taskrunnercode",
"tamasfe.even-better-toml",
"twxs.cmake",
"yzhang.markdown-all-in-one"
]
}
},
"containerEnv": {
"NODE_EXTRA_CA_CERTS": "/etc/ssl/certs/ca-certificates.crt",
"REQUESTS_CA_BUNDLE": "/etc/ssl/certs/ca-certificates.crt"
},
// Adjust the user in the Dockerfile if you're changing it here. Otherwise the prebuilt conan packages are unavailable.
// "remoteUser": "eclipse",
"mounts": [
// Mount your SSH keys into the container.
"source=${localEnv:HOME}/.ssh,target=/home/eclipse/.ssh,type=bind,consistency=cached",
// Mount your local SSL certificates into the container.
"source=/etc/ssl/certs/ca-certificates.crt,target=/etc/ssl/certs/ca-certificates.crt,type=bind,consistency=cached",
"source=vaf_bashhistory,target=/commandhistory,type=volume"
],
"postCreateCommand": "sudo chown -R eclipse /commandhistory && echo \"export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history\" >> \"/home/eclipse/.bashrc\"",
"postStartCommand": "pre-commit install",
"capAdd": [
"NET_ADMIN",
"NET_RAW"
]
}