1
Fork 0

chore: configure devcontainer

This commit is contained in:
Tibo De Peuter 2026-03-18 17:03:09 +01:00
parent 1f64f8a176
commit fc9fd5a6c3
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 136 additions and 3 deletions

View file

@ -0,0 +1,47 @@
{
"name": "Brittle Star JAX/CUDA",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
// Standardize workspace folder to /workspaces/project for IDE parity
"workspaceFolder": "/workspaces/project",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"charliermarsh.ruff",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter"
],
"settings": {
"python.defaultInterpreterPath": "/workspaces/project/.venv/bin/python",
"python.analysis.localRoot": "/workspaces/project",
"python.analysis.extraPaths": [
"/workspaces/project/.venv/lib/python3.12/site-packages"
]
}
},
"jetbrains": {
"plugins": [
"Pythonid",
"fleet.python",
"com.koxudaxi.ruff"
]
}
},
"remoteUser": "vscode",
"runArgs": [
"--gpus",
"all"
],
// Ensure the .venv persists using a named volume for performance and parity
"mounts": [
"source=brittle_star-venv,target=/workspaces/project/.venv,type=volume"
],
// Invoke the hardware-aware sync script
"postCreateCommand": "bash .devcontainer/post-create.sh",
"features": {
"ghcr.io/devcontainers/features/common-utils:1": {}
}
}