|
1 | 1 | { |
2 | | - "name": "Python 3.13 with JupyterLab, Ruff, Black, and Mypy", |
| 2 | + "name": "Py 3.13 with Jupyter kernel + JLab, R, B, M, and Docker + VScode/dev-env/git CICD", |
3 | 3 | "image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu", |
4 | | - "settings": { |
5 | | - "terminal.integrated.defaultProfile.linux": "bash", |
6 | | - "python.pythonPath": "~/.pyenv/versions/3.13.0/bin/python", |
7 | | - "python.linting.enabled": true, |
8 | | - "python.linting.ruffEnabled": true, |
9 | | - "editor.formatOnSave": true, |
10 | | - "editor.defaultFormatter": "ms-python.black-formatter" |
| 4 | + "customizations": { |
| 5 | + "vscode": { |
| 6 | + "settings": { |
| 7 | + "terminal.integrated.defaultProfile.linux": "bash", |
| 8 | + "editor.formatOnSave": true, |
| 9 | + "python.pythonPath": "~/.pyenv/versions/3.13.0/bin/python", |
| 10 | + "python.linting.enabled": true, |
| 11 | + "python.linting.ruffEnabled": true, |
| 12 | + "editor.defaultFormatter": "ms-python.black-formatter" |
| 13 | + }, |
| 14 | + "extensions": [ |
| 15 | + "ms-python.python", |
| 16 | + "charliermarsh.ruff", |
| 17 | + "ms-python.black-formatter", |
| 18 | + "matangover.mypy", |
| 19 | + "ms-python.debugpy" |
| 20 | + ] |
| 21 | + } |
11 | 22 | }, |
12 | | - "extensions": [ |
13 | | - "ms-python.python", |
14 | | - "charliermarsh.ruff", |
15 | | - "ms-python.black-formatter", |
16 | | - "matangover.mypy" |
17 | | - ], |
18 | | - "postCreateCommand": "bash .devcontainer/setup.sh && cp .devcontainer/.bashrc ~/.bashrc && source ~/.bashrc && pip install -e . jupyterlab mypy black", |
| 23 | + "postCreateCommand": "bash .devcontainer/provisioning.sh && bash .devcontainer/setup.sh && cp .devcontainer/.bashrc ~/.bashrc && source ~/.bashrc && pip install -e . || true", |
19 | 24 | "postStartCommand": "jupyter-lab --ip=0.0.0.0 --no-browser --allow-root", |
20 | 25 | "forwardPorts": [8000, 8888, 8341], |
| 26 | + "runArgs": ["--network=host"], |
| 27 | + "onCreateCommand": "if [ \"$CODESPACES\" = \"true\" ]; then echo 'In Codespaces: Running minimal setup'; else bash .devcontainer/provisioning.sh; fi || true", |
21 | 28 | "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind", |
22 | 29 | "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
23 | 30 | "remoteUser": "vscode", |
24 | 31 | "features": { |
25 | 32 | "ghcr.io/devcontainers/features/python:1": { |
26 | 33 | "version": "3.13" |
27 | 34 | } |
| 35 | + }, |
| 36 | + "remoteEnv": { |
| 37 | + "OLLAMA_SERVER": "http://host.docker.internal:11434" |
28 | 38 | } |
29 | 39 | } |
0 commit comments