forked from mirzaim/cuda-devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
40 lines (40 loc) · 1.45 KB
/
devcontainer.json
File metadata and controls
40 lines (40 loc) · 1.45 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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/ubuntu
{
"name": "COLA-dev",
"build": {
"dockerfile": "Dockerfile",
"args": {
// choose valid combination from https://hub.docker.com/r/nvidia/cuda/tags
"VARIANT": "ubuntu22.04",
"CUDA_VERSION": "12.4.1",
"USERNAME": "vscode",
"USER_UID": "${localEnv:UID:1000}",
"USER_GID": "${localEnv:GID:1000}"
}
},
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"runArgs": [
"--gpus",
"all",
"--shm-size=32gb"
],
"mounts": [
"source=${env:HOME}/.ssh,target=/home/vscode/.ssh,readonly,type=bind"
],
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"github.copilot",
"ms-toolsai.jupyter"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"remoteUser": "vscode"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "sudo chown -R vscode:vscode /workspaces"
}