gogo2/.vscode/tasks.json
2024-03-22 17:38:43 +02:00

90 lines
2.2 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
// }
// },
,
{
"label": "Activate Conda Env, Set ENV Variable, and Open Shell",
"type": "shell",
"command": "bash --init-file <(echo 'source ~/miniconda3/etc/profile.d/conda.sh && conda activate aider && export OPENAI_API_KEY=xxx && aider --no-auto-commits')",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "new"
},
}
]
}