|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/python-3-anaconda |
| 3 | +{ |
| 4 | + "name": "Numpy (devcontainer)", |
| 5 | + "build": { |
| 6 | + "context": "..", |
| 7 | + "dockerfile": "Dockerfile", |
| 8 | + "args": { |
| 9 | + "NODE_VERSION": "lts/*" |
| 10 | + } |
| 11 | + }, |
| 12 | + |
| 13 | + // Configure tool-specific properties. |
| 14 | + "customizations": { |
| 15 | + // Configure properties specific to VS Code. |
| 16 | + "vscode": { |
| 17 | + // Set *default* container specific settings.json values on container create. |
| 18 | + "settings": { |
| 19 | + "python.defaultInterpreterPath": "/opt/conda/bin/python", |
| 20 | + "python.linting.enabled": true, |
| 21 | + "python.linting.pylintEnabled": true, |
| 22 | + "python.formatting.autopep8Path": "/opt/conda/bin/autopep8", |
| 23 | + "python.formatting.yapfPath": "/opt/conda/bin/yapf", |
| 24 | + "python.linting.flake8Path": "/opt/conda/bin/flake8", |
| 25 | + "python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle", |
| 26 | + "python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle", |
| 27 | + "python.linting.pylintPath": "/opt/conda/bin/pylint" |
| 28 | + }, |
| 29 | + |
| 30 | + // Add the IDs of extensions you want installed when the container is created. |
| 31 | + "extensions": [ |
| 32 | + "ms-python.python", |
| 33 | + "ms-python.vscode-pylance", |
| 34 | + "njpwerner.autodocstring", |
| 35 | + "ms-toolsai.jupyter", |
| 36 | + "donjayamanne.python-environment-manager", |
| 37 | + "ms-azuretools.vscode-docker" |
| 38 | + ] |
| 39 | + } |
| 40 | + }, |
| 41 | + |
| 42 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 43 | + // "forwardPorts": [], |
| 44 | + |
| 45 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 46 | + "postCreateCommand": "conda init", |
| 47 | + |
| 48 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 49 | + "remoteUser": "vscode", |
| 50 | + "features": { |
| 51 | + "ghcr.io/devcontainers/features/rust:1": { |
| 52 | + "version": "latest" |
| 53 | + } |
| 54 | + } |
| 55 | +} |
0 commit comments