user vscode

This commit is contained in:
2026-06-11 20:57:38 +00:00
parent eaa3d83aed
commit c6ed55e111
9 changed files with 163 additions and 71 deletions
+30 -10
View File
@@ -1,22 +1,25 @@
{
"name": "Python Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "dev",
"name": "dev-python313",
"build": {
"dockerfile": "Dockerfile"
},
"workspaceFolder": "/workspace",
"overrideCommand": true,
"remoteUser": "vscode",
"updateRemoteUserUID": true,
"runArgs": [
"--group-add=1000"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.autopep8",
"ms-toolsai.jupyter",
"ms-python.black-formatter",
"ms-python.isort",
"charliermarsh.ruff",
"codezombiech.gitignore",
"davidanson.vscode-markdownlint",
"ms-azuretools.vscode-docker",
"docker.docker",
"openai.chatgpt",
"continue.continue"
],
@@ -29,17 +32,34 @@
"python.analysis.diagnosticMode": "workspace",
"editor.formatOnSave": true,
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "${env:VENV_PATH}/bin/python",
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
"remote.restoreForwardedPorts": false,
"remote.autoForwardPortsSource": "output",
"debug.javascript.autoAttachFilter": "disabled"
"debug.javascript.autoAttachFilter": "disabled",
"terminal.integrated.env.linux": {
"VIRTUAL_ENV": "/workspace/.venv",
"PATH": "/workspace/.venv/bin:${env:PATH}"
},
"terminal.integrated.defaultProfile.linux": "dev-python313 venv",
"terminal.integrated.profiles.linux": {
"DocExtractor venv": {
"path": "bash",
"args": [
"--rcfile",
"/workspace/.devcontainer/bashrc"
]
}
}
}
}
},
"mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
"source=${localWorkspaceFolder},target=/workspace,type=bind",
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
"source=/home/jojo/.devcontainer-home,target=/home/vscode,type=bind"
],
"postCreateCommand": "bash .devcontainer/post_create.sh",
"postStartCommand": "bash .devcontainer/post_start.sh",
"forwardPorts": [],
"portsAttributes": {
"*": {