mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
92 lines
3.3 KiB
JSON
92 lines
3.3 KiB
JSON
{
|
|
"name": "Khoj Development Environment",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"context": "..", // Build context is the project root
|
|
"args": {
|
|
"PYTHON_VERSION": "3.10"
|
|
}
|
|
},
|
|
"forwardPorts": [
|
|
42110
|
|
],
|
|
"containerEnv": {
|
|
"USE_EMBEDDED_DB": "True"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"ms-python.black-formatter",
|
|
"ms-python.mypy-type-checker",
|
|
"ms-python.isort",
|
|
"esbenp.prettier-vscode",
|
|
"GitHub.copilot",
|
|
"GitHub.copilot-chat",
|
|
"GitHub.vscode-pull-request-github",
|
|
"github.vscode-github-actions",
|
|
"unifiedjs.vscode-mdx"
|
|
],
|
|
"settings": {
|
|
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
|
|
"python.formatting.provider": "black",
|
|
"python.linting.enabled": true,
|
|
"python.linting.mypyEnabled": true,
|
|
"python.linting.mypyArgs": [
|
|
"--config-file=pyproject.toml"
|
|
],
|
|
"mypy.configFile": "pyproject.toml",
|
|
"isort.args": [
|
|
"--profile",
|
|
"black",
|
|
"--filter-files"
|
|
],
|
|
"python.testing.pytestArgs": [
|
|
"tests"
|
|
],
|
|
"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",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "lts",
|
|
"installYarnUsingApt": false,
|
|
"nodeGypDependencies": true
|
|
}
|
|
},
|
|
"remoteUser": "vscode"
|
|
}
|