|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile |
3 | 3 | { |
4 | | - "name": "CUDA Container ", |
5 | | - "build": { |
6 | | - // Sets the run context to one level up instead of the .devcontainer folder. |
7 | | - "context": "..", |
8 | | - // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
9 | | - "dockerfile": "../Dockerfile", |
10 | | - "args": { |
11 | | - "IMAGE_NAME": "nvidia/cuda:12.3.1-runtime-ubuntu22.04" |
12 | | - }, |
13 | | - "target": "dev" |
14 | | - }, |
15 | | - "features": { |
16 | | - "ghcr.io/devcontainers/features/git-lfs:1": { |
17 | | - "autoPull": true, |
18 | | - "version": "latest" |
19 | | - } |
20 | | - }, |
21 | | - "runArgs": [ |
22 | | - "--gpus=all" |
23 | | - ] |
| 4 | + "name": "DEV Container", |
| 5 | + "dockerComposeFile": "./docker-compose.yml", |
| 6 | + "service": "devcontainer", |
| 7 | + "workspaceFolder": "/workspace", |
| 8 | + "features": { |
| 9 | + // https://containers.dev/features |
| 10 | + "ghcr.io/devcontainers/features/git-lfs:1": { |
| 11 | + "autoPull": true, |
| 12 | + "version": "latest" |
| 13 | + } |
| 14 | + }, |
| 15 | + "customizations": { |
| 16 | + "vscode": { |
| 17 | + "extensions": [ |
| 18 | + // add extensions for vscode here, you can copy the id from the extension page |
| 19 | + // "ms-toolsai.jupyter", |
| 20 | + // "ms-toolsai.vscode-jupyter-powertoys", |
| 21 | + "ms-azuretools.vscode-docker", |
| 22 | + "ms-python.python", |
| 23 | + "ms-python.debugpy", |
| 24 | + "ms-vscode-remote.remote-containers" |
| 25 | + ] |
| 26 | + } |
| 27 | + } |
24 | 28 |
|
25 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
26 | | - // "features": {}, |
| 29 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 30 | + // "forwardPorts": [], |
27 | 31 |
|
28 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
29 | | - // "forwardPorts": [], |
| 32 | + // Uncomment the next line to run commands after the container is created. |
| 33 | + // "postCreateCommand": "cat /etc/os-release", |
30 | 34 |
|
31 | | - // Uncomment the next line to run commands after the container is created. |
32 | | - // "postCreateCommand": "cat /etc/os-release", |
33 | | - |
34 | | - // Configure tool-specific properties. |
35 | | - // "customizations": {}, |
36 | | - |
37 | | - // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
38 | | - // "remoteUser": "devcontainer" |
| 35 | + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
| 36 | + // "remoteUser": "devcontainer" |
39 | 37 | } |
0 commit comments