|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | | -// README at: https://github.com/devcontainers/templates/tree/main/src/debian |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/python |
3 | 3 | { |
4 | 4 | "name": "dsc-tutorials-dev", |
5 | 5 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | | - "image": "dsc-tutorials-dev", |
| 6 | + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", |
7 | 7 |
|
8 | 8 | // Features to add to the dev container. More info: https://containers.dev/features. |
9 | | - // "features": { |
10 | | - // "ghcr.io/devcontainers/features/conda:1": {} |
11 | | - // }, |
12 | | - |
13 | | - // where to mount the workspace |
14 | | - "workspaceFolder": "/workspace", |
15 | | - "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind", |
| 9 | + // "features": {}, |
16 | 10 |
|
17 | 11 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
18 | | - "forwardPorts": [5000, 6006, 8888], |
| 12 | + // "forwardPorts": [], |
| 13 | + |
| 14 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 15 | + "postCreateCommand": "pip3 install --user -r requirements.txt", |
19 | 16 |
|
20 | 17 | // Configure tool-specific properties. |
21 | 18 | "customizations": { |
|
30 | 27 | } |
31 | 28 | }, |
32 | 29 |
|
33 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
34 | | - "remoteUser": "root", |
35 | | - |
36 | | - // install package and cleanup |
37 | | - "postCreateCommand": "./.devcontainer/post-install.sh", |
38 | | - |
39 | 30 | // with GPU support |
40 | 31 | "runArgs": [ |
41 | 32 | "--gpus", "all", |
42 | 33 | "--cpus", "16", |
43 | 34 | "--memory", "16g", |
44 | 35 | "--shm-size", "4g" |
45 | | - ] |
| 36 | + ], |
46 | 37 |
|
47 | | - // Additional mounts |
48 | | - // "mounts": [{ "source": "dind-var-lib-docker", "target": "/var/lib/docker", "type": "volume" }] |
| 38 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 39 | + "remoteUser": "root" |
49 | 40 | } |
0 commit comments