Try pre-install deps, use custom launch.json for dev container

Previous attempts have not been sufficient. Let's see if this works
This commit is contained in:
Debanjum
2025-06-03 04:57:00 -07:00
parent 29b973e748
commit 63a1a8e91f
4 changed files with 67 additions and 45 deletions

View File

@@ -29,7 +29,7 @@
"unifiedjs.vscode-mdx"
],
"settings": {
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
"python.defaultInterpreterPath": "/opt/venv/bin/python",
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
@@ -47,38 +47,10 @@
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"launch": {
"configurations": [
{
"name": "Launch Khoj",
"type": "debugpy",
"request": "launch",
"module": "src.khoj.main",
"console": "integratedTerminal",
"justMyCode": false,
"sudo": true,
"args": [
"-v",
"--anonymous-mode",
"--non-interactive",
"--port=42110"
],
"envFile": "${workspaceFolder}/.env",
"env": {
"KHOJ_ADMIN_EMAIL": "admin",
"KHOJ_ADMIN_PASSWORD": "admin",
"USE_EMBEDDED_DB": "true",
"KHOJ_DEBUG": "true",
"KHOJ_TELEMETRY_DISABLED": "true",
"PROMPTRACE_DIR": "${workspaceFolder}/promptrace"
}
}
]
}
}
}
},
"postCreateCommand": "scripts/dev_setup.sh",
"postCreateCommand": "scripts/dev_setup.sh --devcontainer",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {