-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathexample.devcontainer.json
More file actions
42 lines (42 loc) · 1.65 KB
/
example.devcontainer.json
File metadata and controls
42 lines (42 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"name": "PETPrep Development",
"image": "ghcr.io/nipreps/petprep:main",
"runArgs": [
"--privileged"
],
"mounts": [
"source=/FullPath/to/the/data/directory/contaning/your/bids/data,target=/data,type=bind,consistency=cached",
"source=/FullPath/to/your/freesurfer/license.txt,target=/opt/freesurfer/license.txt,type=bind,consistency=cached"
],
"overrideCommand": true,
"workspaceFolder": "/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"remoteUser": "petprep",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.debugpy",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-python.black-formatter"
],
"settings": {
"python.defaultInterpreterPath": "/opt/conda/envs/petprep/bin/python",
"python.terminal.activateEnvironment": false,
"python.linting.enabled": true,
"python.linting.ruffEnabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"files.eol": "\n"
}
}
},
"postCreateCommand": "bash -c 'cd /workspace && pip install --user --ignore-installed --no-cache-dir -e .[dev,test]'",
"postStartCommand": "",
"remoteEnv": {
"PATH": "/home/petprep/.local/bin:/opt/conda/envs/petprep/bin:${containerEnv:PATH}",
"PYTHONPATH": "/workspace:${containerEnv:PYTHONPATH}",
"TEMPLATEFLOW_HOME": "/home/petprep/.cache/templateflow"
}
}