-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevcontainer.json
48 lines (48 loc) · 1.37 KB
/
devcontainer.json
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
43
44
45
46
47
48
{
"name": "pluczak-dev",
"image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm",
"userEnvProbe": "none",
"mounts": [
"source=/data/TrueNas_pluczak/datasets,target=/datasets,type=bind,consistency=cached",
"source=/data/LOCAL_pluczak,target=/LOCAL,type=bind,consistency=cached",
],
// // // // // // // IF GPU avaialble
"hostRequirements": {
"gpu": true
},
"runArgs": [
"--gpus",
"all",
"--shm-size",
"48gb"
],
// // // // // // // ELSE
// "hostRequirements": {},
// // // // // // // ENDIF
"features": {
"ghcr.io/devcontainers/features/git": {},
"ghcr.io/devcontainers/features/git-lfs": {},
"ghcr.io/devcontainers/features/github-cli": {},
// // // // // // // IF GPU avaialble
"ghcr.io/devcontainers/features/nvidia-cuda": {
"cudaVersion": "12.4"
},
// // // // // // // ENDIF
"ghcr.io/devcontainers-contrib/features/tmux-apt-get": {}
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.pythonPath": "/usr/local/bin/python",
"terminal.integrated.env.linux": {
"PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}"
}
}
}
},
"postCreateCommand": "pip3 install --user --no-dependencies --no-warn-script-location -r .devcontainer/requirements.compiled.txt",
// "remoteUser": "root"
"remoteUser": "vscode",
"updateRemoteUserUID": true
}