|
| 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/python |
| 3 | +{ |
| 4 | +"name": "Python 3", |
| 5 | +"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", |
| 6 | +"features": { |
| 7 | +"ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
| 8 | +"ghcr.io/devcontainers/features/git:1": "latest", |
| 9 | +"ghcr.io/devcontainers/features/github-cli:1": {}, |
| 10 | +"ghcr.io/devcontainers/features/python:1": "none", |
| 11 | +"ghcr.io/devcontainers-contrib/features/act:1": {}, |
| 12 | +"ghcr.io/devcontainers-contrib/features/ruff:1": {} |
| 13 | +}, |
| 14 | + |
| 15 | +// Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 16 | +// "forwardPorts": [], |
| 17 | + |
| 18 | +// Use 'postCreateCommand' to run commands after the container is created. |
| 19 | +// "postCreateCommand": "pip3 install --user -r requirements.txt", |
| 20 | + |
| 21 | +"onCreateCommand": "bash .devcontainer/on_create_command.sh", |
| 22 | + |
| 23 | +// Configure tool-specific properties. |
| 24 | +// "customizations": {}, |
| 25 | +"customizations": { |
| 26 | +// Configure properties specific to VS Code. |
| 27 | +"vscode": { |
| 28 | +// Add the IDs of extensions you want installed when the container is created. |
| 29 | +"extensions": [ |
| 30 | +"ms-python.python", |
| 31 | +"charliermarsh.ruff" |
| 32 | +], |
| 33 | +// Set *default* container specific settings.json values on container create. |
| 34 | +"settings": { |
| 35 | +"ruff.path": ["/usr/local/py-utils/bin/ruff"] |
| 36 | +} |
| 37 | +} |
| 38 | +}, |
| 39 | + |
| 40 | +// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 41 | +// "remoteUser": "root" |
| 42 | +} |
0 commit comments