|
| 1 | +{ |
| 2 | + "name": "CUDA MAX nightly scipy", |
| 3 | + "build": { |
| 4 | + "dockerfile": "../Mojo.Dockerfile", |
| 5 | + "context": "..", |
| 6 | + "args": { |
| 7 | + "BUILD_ON_IMAGE": "glcr.b-data.ch/cuda/max/scipy", |
| 8 | + "MOJO_VERSION": "nightly", |
| 9 | + // "UNMINIMIZE": "unset-to-keep-minimized", |
| 10 | + "JUPYTERLAB_VERSION": "4.3.4", |
| 11 | + // "INSTALL_DEVTOOLS": "unset-to-not-install", |
| 12 | + "NODE_VERSION": "20.18.1", |
| 13 | + "USE_ZSH_FOR_ROOT": "unset-to-use-bash", |
| 14 | + "LANG": "en_US.UTF-8", |
| 15 | + "TZ": "Etc/UTC" |
| 16 | + } |
| 17 | + }, |
| 18 | + |
| 19 | + "onCreateCommand": "onCreateCommand.sh", |
| 20 | + "postStartCommand": "${HOME}/.local/bin/dockerSystemPrune.sh", |
| 21 | + "postAttachCommand": "${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh && nvidia_entrypoint.sh", |
| 22 | + |
| 23 | + "features": { |
| 24 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 25 | + "configureZshAsDefaultShell": true, |
| 26 | + "upgradePackages": false, |
| 27 | + "username": "vscode", |
| 28 | + "userUid": "automatic", |
| 29 | + "userGid": "automatic" |
| 30 | + }, |
| 31 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
| 32 | + "moby": false |
| 33 | + }, |
| 34 | + // A comma separated list of packages to install |
| 35 | + "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { |
| 36 | + "packages": "" |
| 37 | + } |
| 38 | + }, |
| 39 | + |
| 40 | + "customizations": { |
| 41 | + "vscode": { |
| 42 | + "extensions": [ |
| 43 | + "alefragnani.project-manager", |
| 44 | + "christian-kohler.path-intellisense", |
| 45 | + "DavidAnson.vscode-markdownlint", |
| 46 | + |
| 47 | + "editorconfig.editorconfig", |
| 48 | + "GitHub.vscode-pull-request-github", |
| 49 | + "GitLab.gitlab-workflow", |
| 50 | + "grapecity.gc-excelviewer", |
| 51 | + "mhutchie.git-graph", |
| 52 | + "modular-mojotools.vscode-mojo-nightly", |
| 53 | + "ms-python.python", |
| 54 | + "ms-toolsai.jupyter", |
| 55 | + "mutantdino.resourcemonitor", |
| 56 | + "piotrpalarz.vscode-gitignore-generator", |
| 57 | + "redhat.vscode-yaml", |
| 58 | + "James-Yu.latex-workshop", |
| 59 | + "quarto.quarto", |
| 60 | + "dbaeumer.vscode-eslint", |
| 61 | + "esbenp.prettier-vscode", |
| 62 | + "ms-python.black-formatter", |
| 63 | + "timonwong.shellcheck", |
| 64 | + "exiasr.hadolint", |
| 65 | + "ms-azuretools.vscode-docker" |
| 66 | + ], |
| 67 | + "settings": { |
| 68 | + "gitlab.aiAssistedCodeSuggestions.enabled": false, |
| 69 | + "gitlab.duoChat.enabled": false, |
| 70 | + "gitlens.showWelcomeOnInstall": false, |
| 71 | + "gitlens.showWhatsNewAfterUpgrades": false, |
| 72 | + "resmon.show.battery": false, |
| 73 | + "resmon.show.cpufreq": false |
| 74 | + } |
| 75 | + } |
| 76 | + }, |
| 77 | + |
| 78 | + // Set 'remoteUser' to 'root' to connect as root instead. |
| 79 | + "remoteUser": "vscode", |
| 80 | + "workspaceMount": "source=dsdc-cuda-max-nightly-scipy-home-vscode,target=/home/vscode,type=volume", |
| 81 | + // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-cuda-max-nightly-scipy-home-vscode,target=/home/vscode,type=bind", |
| 82 | + "workspaceFolder": "/home/vscode", |
| 83 | + |
| 84 | + // "remoteUser": "root", |
| 85 | + // "workspaceMount": "source=dsdc-cuda-max-nightly-scipy-root,target=/root,type=volume", |
| 86 | + // // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-cuda-max-nightly-scipy-root,target=/root,type=bind", |
| 87 | + // "workspaceFolder": "/root", |
| 88 | + |
| 89 | + "remoteEnv": { |
| 90 | + // By default, CUDA will use all available CUDA-capable devices. |
| 91 | + // Set the following environment variable to control the exact devices to use. |
| 92 | + // "CUDA_VISIBLE_DEVICES": "0", |
| 93 | + // |
| 94 | + // By default, BLAS/OpenMP will use as many threads as possible. |
| 95 | + // Set the following environment variable to control the exact number to use. |
| 96 | + // "OMP_NUM_THREADS": "1", |
| 97 | + // |
| 98 | + // Pip: Install packages to the user site |
| 99 | + "PIP_USER": "1" |
| 100 | + }, |
| 101 | + |
| 102 | + "runArgs": [ |
| 103 | + "--gpus", "device=all", |
| 104 | + "--shm-size", "2g" |
| 105 | + ] |
| 106 | +} |
0 commit comments