50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"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"
|
|
},
|
|
"workspaceFolder": "/workspace",
|
|
"remoteUser": "root",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"ms-toolsai.jupyter",
|
|
"ms-python.black-formatter",
|
|
"ms-python.isort",
|
|
"ms-azuretools.vscode-docker"
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"mounts": [
|
|
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
|
|
],
|
|
"postCreateCommand": "bash .devcontainer/post_create.sh",
|
|
"forwardPorts": [
|
|
],
|
|
"portsAttributes": {
|
|
"*": {
|
|
"onAutoForward": "ignore"
|
|
}
|
|
}
|
|
}
|