104 lines
2.7 KiB
JSON
104 lines
2.7 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"
|
|
},
|
|
},
|
|
{
|
|
"label": "conda-activate",
|
|
"type": "shell",
|
|
"command": "source ~/miniconda3/etc/profile.d/conda.sh && conda activate ${input:condaEnv} && echo 'Activated Conda Environment (${input:condaEnv})!'",
|
|
"problemMatcher": [],
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "condaEnv",
|
|
"type": "promptString",
|
|
"description": "Enter the Conda environment name",
|
|
"default": "py"
|
|
}
|
|
]
|
|
} |