mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
# Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 293ded1</samp> This pull request adds support for using Visual Studio Code Remote - Containers extension with the pytorch project. It adds a `.devcontainer` folder with a `devcontainer.json` file, a `Dockerfile`, and a `noop.txt` file that configure and create a dev container with Anaconda and Python 3. <!-- copilot:poem --> ### <samp>🤖 Generated by Copilot at d6b9cd7</samp> > _`devcontainer.json`_ > _Configures PyTorch containers_ > _For CPU or GPU_ ## Related to: https://github.com/pytorch/pytorch/issues/92838 Pull Request resolved: https://github.com/pytorch/pytorch/pull/98252 Approved by: https://github.com/ZainRizvi
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/anaconda
|
|
{
|
|
"name": "PyTorch - CPU",
|
|
"build": {
|
|
"context": "../..",
|
|
"dockerfile": "../Dockerfile",
|
|
"args": {
|
|
"USERNAME": "vscode",
|
|
"BUILDKIT_INLINE_CACHE": "0",
|
|
"CLANG_VERSION": ""
|
|
}
|
|
},
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
// This is needed for lintrunner
|
|
"ghcr.io/devcontainers/features/rust:1" : {}
|
|
},
|
|
|
|
// 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": "bash .devcontainer/scripts/install-dev-tools.sh",
|
|
|
|
// Configure tool-specific properties.
|
|
// "customizations": {},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": ["streetsidesoftware.code-spell-checker"]
|
|
}
|
|
}
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|