-
Notifications
You must be signed in to change notification settings - Fork 3
/
.devcontainer.json
37 lines (36 loc) · 1.52 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
{
"name": "zeroflow:latest",
"initializeCommand": "touch ${localWorkspaceFolder}/docker_history.txt; mkdir -p /tmp/frame_results; ./.devcontainer/setup_env.sh",
"build": { "dockerfile": "docker/Dockerfile_cuda", },
"privileged": true,
"workspaceMount": "source=${localWorkspaceFolder},target=/project,type=bind,consistency=default",
"workspaceFolder": "/project",
"customizations":
{
"vscode": {
"extensions": [
"ms-python.vscode-pylance",
"ms-python.mypy-type-checker",
"ms-python.black-formatter",
"ms-python.python",
"ms-azuretools.vscode-docker",
]
}
},
"postStartCommand": "/entrypoint.sh; git config --global --add safe.directory ${containerWorkspaceFolder}",
"mounts": [
"source=/bigdata,target=/bigdata,type=bind,consistency=default",
"source=/efs,target=/efs,type=bind,consistency=default",
"source=/tmp/frame_results,target=/tmp/frame_results,type=bind,consistency=default",
"source=${localWorkspaceFolder}/docker_history.txt,target=/root/.bash_history,type=bind,consistency=default",
"source=/etc/passwd,target=/etc/passwd,type=bind,consistency=default,ro=true",
"source=/etc/group,target=/etc/group,type=bind,consistency=default,ro=true",
],
"runArgs": [
"--gpus=all",
"-h=zeroflow",
"--shm-size=16gb",
],
"containerUser": "${localEnv:MY_UID}:${localEnv:MY_GID}",
"updateRemoteUserUID" : true,
}