-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy path.devcontainer.json
More file actions
43 lines (43 loc) · 1.52 KB
/
.devcontainer.json
File metadata and controls
43 lines (43 loc) · 1.52 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
{
"name": "ogs-gcc-dev",
"image": "mcr.microsoft.com/devcontainers/cpp",
"mounts": [
"source=devcontainer-cpm-cache,target=/opt/cpm,type=volume",
"source=devcontainer-ccache-cache,target=/opt/ccache,type=volume",
"source=${localWorkspaceFolder}/../build,target=${containerWorkspaceFolder}/../build,type=bind"
],
"features": {
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers-extra/features/uv:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers-extra/features/zsh-plugins:0": {
"plugins": "git",
"omzPlugins": "https://github.com/davidde/git"
},
"ghcr.io/devcontainers-extra/features/ccache-asdf:2": {},
"ghcr.io/devcontainers-extra/features/direnv-asdf:2": {},
"ghcr.io/devcontainers/features/hugo:1.1.3": {},
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": {
"fixVolumePerms": "sudo chown -R $(whoami): /opt/cpm /opt/ccache",
"installTools": "uv tool install pre-commit && uv tool install ruff",
"setupDirenv": "grep -qxF 'eval \"$(direnv hook zsh)\"' ~/.zshrc || echo 'eval \"$(direnv hook zsh)\"' >> ~/.zshrc"
},
"postStartCommand": "pre-commit install",
"containerEnv": {
"CMAKE_PRESET_BUILD_DIR_PREFIX": "devcontainer-",
"CPM_SOURCE_CACHE": "/opt/cpm",
"CCACHE_DIR": "/opt/ccache"
},
"customizations": {
"vscode": {
"extensions": [],
"settings": {
"cmake.configureOnOpen": false
}
}
}
}