-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
61 lines (55 loc) · 2.16 KB
/
Copy pathdevcontainer.json
File metadata and controls
61 lines (55 loc) · 2.16 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
{
"name": "ProjectTemplate (Python)",
"image": "mcr.microsoft.com/devcontainers/python:1-3.14-bookworm",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"mounts": [
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/id_ed25519.pub",
"target": "/home/vscode/.ssh/id_ed25519.pub",
"type": "bind",
"readonly": true
},
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.config/git/allowed_signers",
"target": "/home/vscode/.config/git/allowed_signers",
"type": "bind",
"readonly": true
},
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.config/gh",
"target": "/home/vscode/.config/gh",
"type": "bind",
"readonly": false
}
],
"remoteUser": "vscode",
// The bind-mount on macOS hosts surfaces /home/vscode/.ssh as root-owned.
// Chown it back so writes from inside the container land cleanly.
// Those include the known_hosts updates gh and git make.
// Idempotent on Linux and WSL2.
"onCreateCommand": "sudo install -d -m 700 -o vscode -g vscode /home/vscode/.ssh",
// Install pinned uv and pre-warm the project environment.
// No git hooks are installed by default, per README "Optional: enable git hooks locally".
"postCreateCommand": ".devcontainer/python/post-create.sh",
"customizations": {
"vscode": {
// Mirror of `recommendations` in ProjectTemplate.code-workspace.
"extensions": [
"arahata.linter-actionlint",
"charliermarsh.ruff",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"gruntfuggly.todo-tree",
"ms-azuretools.vscode-docker",
"ms-python.python",
"streetsidesoftware.code-spell-checker",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
}
}