-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
102 lines (91 loc) · 2.66 KB
/
devcontainer.json
File metadata and controls
102 lines (91 loc) · 2.66 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"name": "DevContainer for Node.js and Python",
"build": {
"dockerfile": "./Dockerfile",
"context": "."
},
"forwardPorts": [
// Node.js typical ports
3000, 8080,
// Python typical ports
5000, 8000
],
"features": {
// Install Node.js
"ghcr.io/devcontainers/features/node:latest": {
"version": "lts",
"nodeGypDependencies": true,
"nvmInstallPath": "/usr/local/share/nvm"
},
// Install Python
"ghcr.io/devcontainers/features/python:latest": {
"version": "3.10"
},
// Install common utilities
"ghcr.io/devcontainers/features/common-utils:latest": {
"installZsh": true,
"installOhMyZsh": true,
"upgradePackages": true,
"username": "vscode",
"uid": "1000",
"gid": "1000"
}
},
"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/common-utils"
],
"customizations": {
"vscode": {
"extensions": [
// Node.js extensions
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
// Python extensions
"ms-python.python",
"ms-python.vscode-pylance",
// General extensions
"GitHub.copilot",
"GitHub.copilot-labs",
"GitHub.copilot-chat",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"streetsidesoftware.code-spell-checker"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.fontFamily": "CaskaydiaCove Nerd Font",
"editor.minimap.enabled": false,
"explorer.sortOrder": "type",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.js": "${capture}.js.map",
"*.ts": "${capture}.js",
"*.py": "${capture}.pyc"
},
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.provider": "black",
"[python]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
}
},
"onCreateCommand": "/usr/bin/zsh ./.devcontainer/on-create.sh > ~/on-create.log",
"postCreateCommand": "/usr/bin/zsh ./.devcontainer/post-create.sh > ~/post-create.log",
"remoteUser": "vscode"
}