mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
Add a default devcontainer and a compose-backed memory-stack profile, validate them in CI, and document the contributor workflow. Also lock the memory-stack dependencies, pin related container tooling, and sync the latest healthcheck shutdown fix for stubbed memory handlers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"name": "Headroom",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"context": ".."
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "20"
|
|
},
|
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
|
},
|
|
"workspaceFolder": "/workspaces/headroom",
|
|
"remoteUser": "vscode",
|
|
"updateRemoteUserUID": true,
|
|
"init": true,
|
|
"containerEnv": {
|
|
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
|
|
"PYTHONUNBUFFERED": "1",
|
|
"UV_LINK_MODE": "copy",
|
|
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venvs/headroom"
|
|
},
|
|
"mounts": [
|
|
"source=headroom-venv,target=/home/vscode/.venvs,type=volume",
|
|
"source=headroom-uv-cache,target=/home/vscode/.cache/uv,type=volume",
|
|
"source=headroom-pip-cache,target=/home/vscode/.cache/pip,type=volume"
|
|
],
|
|
"postCreateCommand": "bash .devcontainer/post-create.sh",
|
|
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
|
"forwardPorts": [
|
|
8787
|
|
],
|
|
"portsAttributes": {
|
|
"8787": {
|
|
"label": "Headroom proxy",
|
|
"onAutoForward": "notify"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"charliermarsh.ruff",
|
|
"ms-azuretools.vscode-docker",
|
|
"GitHub.vscode-github-actions"
|
|
],
|
|
"settings": {
|
|
"editor.formatOnSave": true,
|
|
"files.eol": "\n",
|
|
"python.analysis.typeCheckingMode": "basic",
|
|
"python.defaultInterpreterPath": "/home/vscode/.venvs/headroom/bin/python",
|
|
"python.terminal.activateEnvironment": false,
|
|
"python.testing.pytestArgs": [
|
|
"tests"
|
|
],
|
|
"python.testing.pytestEnabled": true,
|
|
"[python]": {
|
|
"editor.defaultFormatter": "charliermarsh.ruff"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|