vscode/.devcontainer/prebuilt/devcontainer.json

45 lines
1.1 KiB
JSON
Raw Normal View History

2020-06-02 11:46:08 +08:00
{
2023-03-28 21:29:23 +08:00
"name": "Code - OSS with VNC",
// Image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
2021-02-15 03:10:24 +08:00
"image": "mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:branch-main",
2020-06-02 11:46:08 +08:00
"overrideCommand": false,
2022-03-17 08:40:01 +08:00
"runArgs": [ "--init", "--security-opt", "seccomp=unconfined", "--shm-size=1g"],
2020-06-02 11:46:08 +08:00
// VS Code extensions and settings
"customizations": {
"vscode": {
"settings": {
"resmon.show.battery": false,
"resmon.show.cpufreq": false
},
"extensions": [
"dbaeumer.vscode-eslint",
"mutantdino.resourcemonitor"
]
}
2020-06-02 11:46:08 +08:00
},
2021-05-29 07:27:15 +08:00
// noVNC, VNC
"forwardPorts": [6080, 5901],
"portsAttributes": {
"6080": {
"label": "VNC web client (noVNC)",
"onAutoForward": "silent"
},
"5901": {
"label": "VNC TCP port",
"onAutoForward": "silent"
}
},
2020-06-02 11:46:08 +08:00
2020-10-08 22:27:19 +08:00
// Optionally loads a cached yarn install for the repo
2023-01-20 22:27:07 +08:00
"postCreateCommand": ".devcontainer/prebuilt/cache/restore-diff.sh",
2020-10-08 22:27:19 +08:00
"remoteUser": "node",
"hostRequirements": {
"memory": "9gb"
}
2020-06-02 11:46:08 +08:00
}