File size: 2,143 Bytes
216357c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
49
50
51
52
53
54
55
56
57
58
59
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/python-3
{
  "name": "HF Spaces Demo",
  "image": "nvcr.io/nvidia/nemo:22.03",
  // Set *default* container specific settings.json values on container create.
  "settings": {
    "terminal.integrated.profiles.linux": {
      "bash": {
        "path": "/bin/bash"
      }
    },
    "python.defaultInterpreterPath": "/opt/conda/bin/python",
    "python.condaPath": "/opt/conda/bin/conda",
    "python.languageServer": "Pylance"
  },
  // Add the IDs of extensions you want installed when the container is created.
  "extensions": [
    "ms-python.python",
    "ms-python.vscode-pylance",
    "github.vscode-pull-request-github",
    "ms-toolsai.jupyter",
    "ms-toolsai.jupyter-renderers",
    "ms-vsliveshare.vsliveshare-pack"
  ],
  // docker run arguments
  "runArgs": [
    "--gpus=all",
    "--ipc=host",
    "--ulimit",
    "memlock=-1",
    "--ulimit",
    "stack=67108864"
  ],
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
  "forwardPorts": [
    8888,
    6006
  ],
  // "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces/nemo2ios,type=bind,consistency=cached",
  // "workspaceFolder": "/workspaces/nemo2ios",
  // Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
  // "portsAttributes": {
  //   "9000": {
  //     "label": "Hello Remote World",
  //     "onAutoForward": "notify"
  //   }
  // },
  // Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
  // "otherPortsAttributes": {
  // 		"onAutoForward": "silent"
  // },
  // Use 'postCreateCommand' to run commands after the container is created.
  "postCreateCommand": [
    // "pip3 install -r dev.requirements.txt -r requirements.txt"
  ]
  // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  // "remoteUser": "vscode"
}