|
| 1 | +{ |
| 2 | + "name": "Python & YDB", |
| 3 | + "service": "sdk", |
| 4 | + "dockerComposeFile": "compose.yml", |
| 5 | + "workspaceFolder": "/workspaces/ydb-python-sdk", |
| 6 | + // Allows the container to use ptrace, which is useful for debugging. |
| 7 | + "capAdd": [ |
| 8 | + "SYS_PTRACE" |
| 9 | + ], |
| 10 | + // Disables seccomp, which can be necessary for some debugging tools to function correctly. |
| 11 | + "securityOpt": [ |
| 12 | + "seccomp=unconfined" |
| 13 | + ], |
| 14 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 15 | + "features": { |
| 16 | + "ghcr.io/devcontainers/features/git": {}, |
| 17 | + "ghcr.io/devcontainers/features/common-utils": {}, |
| 18 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 19 | + }, |
| 20 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 21 | + "forwardPorts": [ |
| 22 | + 2135, |
| 23 | + 2136, |
| 24 | + 8765, |
| 25 | + 9090, |
| 26 | + 9464 |
| 27 | + ], |
| 28 | + // Use 'initializeCommand' to run commands before the container is created. |
| 29 | + "initializeCommand": "chmod +x .devcontainer/commands/initialize.sh && .devcontainer/commands/initialize.sh", |
| 30 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 31 | + "postCreateCommand": "chmod +x .devcontainer/commands/postCreate.sh && .devcontainer/commands/postCreate.sh", |
| 32 | + // Use 'postStartCommand' to run commands after the container is started. |
| 33 | + "postStartCommand": "chmod +x .devcontainer/commands/postStart.sh && .devcontainer/commands/postStart.sh", |
| 34 | + // Configure tool-specific properties. |
| 35 | + "customizations": { |
| 36 | + "vscode": { |
| 37 | + "extensions": [ |
| 38 | + "ms-python.autopep8", |
| 39 | + "ms-python.debugpy", |
| 40 | + "ms-python.flake8", |
| 41 | + "ms-python.isort", |
| 42 | + "ms-python.pylint", |
| 43 | + "ms-python.python", |
| 44 | + "ms-python.vscode-pylance", |
| 45 | + "ms-python.vscode-python-envs" |
| 46 | + ] |
| 47 | + } |
| 48 | + }, |
| 49 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 50 | + "remoteUser": "root", |
| 51 | + "mounts": [ |
| 52 | + "source=${localEnv:HOME}/.ssh/id_ed25519_signing,target=/root/.ssh/id_ed25519_signing,type=bind,readonly" |
| 53 | + ] |
| 54 | +} |
0 commit comments