Feat: Create separate devcontainer configs for each user

This commit is contained in:
GuanYuankai 2025-10-11 14:16:34 +08:00
parent c2eb040326
commit 889b02572b
3 changed files with 44 additions and 53 deletions

View File

@ -0,0 +1,22 @@
{
"name": "Edge Proxy Dev (gyk)",
"image": "edge-proxy-edge-proxy-dev:latest",
"workspaceFolder": "/app",
"remoteUser": "gyk",
"mounts": [
"source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached"
],
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools"
]
}
},
"postCreateCommand": "sleep infinity",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt", "seccomp=unconfined"
]
}

View File

@ -1,53 +0,0 @@
{
"name": "Edge Proxy Dev Environment",
// 1. 使 Docker
// "your-dev-image:latest" docker build 使
"image": "edge-proxy-edge-proxy-dev:latest",
// 2.
// VSCode
"workspaceFolder": "/app",
// 3. () 使
// =================================================================
// !!! !!!
//
// : "remoteUser": "gyk"
// : "remoteUser": "zql"
// =================================================================
"remoteUser": "gyk",
"mounts": [
"source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached"
],
// 4. VS Code
"customizations": {
"vscode": {
//
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"ms-vscode.makefile-tools",
"cheshirekow.cmake-format"
],
// VS Code
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
}
}
},
// 5. ()
// 使 VSCode
"postCreateCommand": "sleep infinity",
// 6. `docker run`
"runArgs": [
// 使 gdb
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
]
}

View File

@ -0,0 +1,22 @@
{
"name": "Edge Proxy Dev (zql)",
"image": "edge-proxy-edge-proxy-dev:latest",
"workspaceFolder": "/app",
"remoteUser": "zql",
"mounts": [
"source=${localWorkspaceFolder},target=/app,type=bind,consistency=cached"
],
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools"
]
}
},
"postCreateCommand": "sleep infinity",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt", "seccomp=unconfined"
]
}