|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers-community/templates/tree/main/src/jupyter-datascience-notebooks |
| 3 | +{ |
| 4 | + "name": "Jupyter Data Science Notebooks", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile" |
| 7 | + }, |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + "features": { |
| 10 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 11 | + "installZsh": "true", |
| 12 | + "username": "jovyan", |
| 13 | + "userUid": "1000", |
| 14 | + "userGid": "1000", |
| 15 | + "upgradePackages": "true" |
| 16 | + } |
| 17 | + }, |
| 18 | + // Use base images default CMD. |
| 19 | + "overrideCommand": false, |
| 20 | + // Forward Jupyter port locally, mark required. |
| 21 | + "forwardPorts": [8888], |
| 22 | + "portsAttributes": { |
| 23 | + "8888": { |
| 24 | + "label": "Jupyter", |
| 25 | + "requireLocalPort": true, |
| 26 | + "onAutoForward": "ignore" |
| 27 | + } |
| 28 | + }, |
| 29 | + // Configure tool-specific properties. |
| 30 | + "customizations": { |
| 31 | + // Configure properties specific to VS Code. |
| 32 | + "vscode": { |
| 33 | + // Set *default* container specific settings.json values on container create. |
| 34 | + "settings": { |
| 35 | + "python.defaultInterpreterPath": "/opt/conda/bin/python" |
| 36 | + }, |
| 37 | + // Add the IDs of extensions you want installed when the container is created. |
| 38 | + "extensions": ["ms-python.python", "ms-toolsai.jupyter"] |
| 39 | + } |
| 40 | + } |
| 41 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 42 | + // "postCreateCommand": "pip3 install --user -r requirements.txt", |
| 43 | + |
| 44 | + // Configure tool-specific properties. |
| 45 | + // "customizations": {}, |
| 46 | + |
| 47 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 48 | + // "remoteUser": "root" |
| 49 | +} |
0 commit comments