Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21326b3

Browse files
committed
feat(devcontainer): install dotfiles if present
1 parent f2d229e commit 21326b3

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "Development environments on your infrastructure",
33
"image": "codercom/oss-dogfood:latest",
4-
54
"features": {
65
// See all possible options here https://github.com/devcontainers/features/tree/main/src/docker-in-docker
76
"ghcr.io/devcontainers/features/docker-in-docker:2": {
@@ -13,10 +12,19 @@
1312
}
1413
},
1514
// SYS_PTRACE to enable go debugging
16-
"runArgs": ["--cap-add=SYS_PTRACE"],
15+
"runArgs": [
16+
"--cap-add=SYS_PTRACE"
17+
],
1718
"customizations": {
1819
"vscode": {
19-
"extensions": ["biomejs.biome"]
20+
"extensions": [
21+
"biomejs.biome"
22+
]
2023
}
21-
}
24+
},
25+
"mounts": [
26+
// Mount the entire home because conditional mounts are not supported.
27+
"source=${localEnv:HOME},target=/mnt/home/coder,type=bind,readonly"
28+
],
29+
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
2230
}

0 commit comments

Comments
 (0)