headroom/.devcontainer/devcontainer.json
JerrettDavis a1beb08d53 feat: add reproducible devcontainers
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>
2026-04-10 12:58:35 -05:00

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"
}
}
}
}
}