80 lines
1.8 KiB
JSON
80 lines
1.8 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "docker-build",
|
|
"label": "docker-build",
|
|
"platform": "node",
|
|
"dockerBuild": {
|
|
"dockerfile": "${workspaceFolder}/Dockerfile",
|
|
"context": "${workspaceFolder}",
|
|
"pull": true
|
|
}
|
|
},
|
|
{
|
|
"type": "docker-run",
|
|
"label": "docker-run: release",
|
|
"dependsOn": [
|
|
"docker-build"
|
|
],
|
|
"platform": "node"
|
|
},
|
|
// {
|
|
// "type": "docker-run",
|
|
// "label": "docker-run: debug2",
|
|
// "dependsOn": [
|
|
// "docker-build"
|
|
// ],
|
|
// "dockerRun": {
|
|
// "env": {
|
|
// "DEBUG": "*",
|
|
// "NODE_ENV": "development"
|
|
// }
|
|
// },
|
|
// "node": {
|
|
// "enableDebugging": true
|
|
// }
|
|
// },
|
|
{
|
|
"type": "npm",
|
|
"script": "start",
|
|
"problemMatcher": [],
|
|
"label": "npm: start",
|
|
"detail": "node /app/web/server.js"
|
|
},
|
|
{
|
|
"label": "python-run",
|
|
"type": "shell",
|
|
"command": "python agent-py-bot/agent.py",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "python-debug",
|
|
"type": "shell",
|
|
"command": "python -m debugpy --listen 0.0.0.0:5678 agent-py-bot/agent.py",
|
|
// "command": "docker exec -w /workspace -it my-python-container /bin/bash -c 'source activate py && python -m debugpy --listen 0.0.0.0:5678 agent-py-bot/agent.py'",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "activate-venv-and-run-docker",
|
|
"type": "shell",
|
|
"command": "source /venv/bin/activate && docker-compose up", // Example command
|
|
"problemMatcher": [],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
}
|
|
// ,{
|
|
// "label": "activate-venv",
|
|
// "type": "shell",
|
|
// "command": "source /venv/bin/activate", // Example command
|
|
// "problemMatcher": [],
|
|
// "group": {
|
|
// "kind": "build",
|
|
// "isDefault": true
|
|
// }
|
|
// }
|
|
|
|
]
|
|
} |