centralizácia nastavení do .devcontainer/.env

This commit is contained in:
2026-02-21 19:48:14 +00:00
parent 8c99d6e975
commit b48ee09f80
6 changed files with 207 additions and 110 deletions

View File

@@ -1,60 +1,49 @@
{
"name": "Python Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "dev",
"containerEnv": {
"PIP_INDEX_URL": "https://dv.masara.eu/repository/pypi-group/simple",
"PIP_ROOT_USER_ACTION": "ignore"
},
"remoteEnv": {
"DOCKER_BUILDKIT": "1",
"VIRTUAL_ENV": "/workspace/.venv",
"PATH": "/workspace/.venv/bin:${containerEnv:PATH}"
},
"workspaceFolder": "/workspace",
"remoteUser": "root",
"overrideCommand": true,
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.autopep8",
"ms-toolsai.jupyter",
"ms-python.black-formatter",
"ms-python.isort",
"codezombiech.gitignore",
"davidanson.vscode-markdownlint",
"ms-azuretools.vscode-docker",
"docker.docker",
"openai.chatgpt",
"continue.continue"
],
"settings": {
"python.formatting.provider": "black",
"python.analysis.extraPaths": [
"${workspaceFolder}/app"
],
"editor.formatOnSave": true,
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": ".venv/bin/python",
"remote.restoreForwardedPorts": false,
"remote.autoForwardPortsSource": "output",
"debug.javascript.autoAttachFilter": "disabled"
}
"name": "Python Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "dev",
"workspaceFolder": "/workspace",
"overrideCommand": true,
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.autopep8",
"ms-toolsai.jupyter",
"ms-python.black-formatter",
"ms-python.isort",
"codezombiech.gitignore",
"davidanson.vscode-markdownlint",
"ms-azuretools.vscode-docker",
"docker.docker",
"openai.chatgpt",
"continue.continue"
],
"settings": {
"python.formatting.provider": "black",
"python.analysis.extraPaths": [
"${workspaceFolder}/app"
],
"python.analysis.typeCheckingMode": "basic",
"python.analysis.diagnosticMode": "workspace",
"editor.formatOnSave": true,
"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "${env:VENV_PATH}/bin/python",
"remote.restoreForwardedPorts": false,
"remote.autoForwardPortsSource": "output",
"debug.javascript.autoAttachFilter": "disabled"
}
}
},
"mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"postCreateCommand": "bash .devcontainer/post_create.sh",
"forwardPorts": [],
"portsAttributes": {
"*": {
"onAutoForward": "ignore"
}
}
},
"mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock",
"type=volume,source=docextractor-codex,target=/root/.codex",
"type=bind,source=${localEnv:USERPROFILE}/.codex/auth.json,target=/root/.codex/auth.json,readonly",
"type=bind,source=${localEnv:USERPROFILE}/.pypirc,target=/root/.pypirc,readonly"
],
"postCreateCommand": "bash .devcontainer/post_create.sh",
"forwardPorts": [],
"portsAttributes": {
"*": {
"onAutoForward": "ignore"
}
}
}
}