chore: configure devcontainer
This commit is contained in:
parent
1f64f8a176
commit
fc9fd5a6c3
6 changed files with 136 additions and 3 deletions
47
.devcontainer/devcontainer.json
Normal file
47
.devcontainer/devcontainer.json
Normal 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": {}
|
||||
}
|
||||
}
|
||||
Reference in a new issue