Spaces:
Running
Running
// 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" | |
} |