|  | 
|  | 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/javascript-node | 
|  | 3 | +{ | 
|  | 4 | +	"name": "Python & YDB", | 
|  | 5 | +	"service": "sdk", | 
|  | 6 | +	"dockerComposeFile": "compose.yml", | 
|  | 7 | +	"workspaceFolder": "/workspaces/ydb-python-sdk", | 
|  | 8 | +	// Allows the container to use ptrace, which is useful for debugging. | 
|  | 9 | +	"capAdd": [ | 
|  | 10 | +		"SYS_PTRACE" | 
|  | 11 | +	], | 
|  | 12 | +	// Disables seccomp, which can be necessary for some debugging tools to function correctly. | 
|  | 13 | +	"securityOpt": [ | 
|  | 14 | +		"seccomp=unconfined" | 
|  | 15 | +	], | 
|  | 16 | +	// Features to add to the dev container. More info: https://containers.dev/features. | 
|  | 17 | +	"features": { | 
|  | 18 | +		"ghcr.io/devcontainers/features/git": {}, | 
|  | 19 | +		"ghcr.io/devcontainers/features/common-utils": {}, | 
|  | 20 | +		"ghcr.io/devcontainers/features/github-cli:1": {} | 
|  | 21 | +	}, | 
|  | 22 | +	// Use 'forwardPorts' to make a list of ports inside the container available locally. | 
|  | 23 | +	"forwardPorts": [ | 
|  | 24 | +		2135, | 
|  | 25 | +		2136, | 
|  | 26 | +		8765, | 
|  | 27 | +		9090, | 
|  | 28 | +		9464 | 
|  | 29 | +	], | 
|  | 30 | +	// Use 'initializeCommand' to run commands before the container is created. | 
|  | 31 | +	"initializeCommand": "chmod +x .devcontainer/commands/initialize.sh && .devcontainer/commands/initialize.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.python", | 
|  | 39 | +				"ms-python.debugpy", | 
|  | 40 | +				"ms-python.vscode-pylance", | 
|  | 41 | +				"ms-python.vscode-python-envs" | 
|  | 42 | +			] | 
|  | 43 | +		} | 
|  | 44 | +	}, | 
|  | 45 | +	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | 
|  | 46 | +	"remoteUser": "root", | 
|  | 47 | +	"mounts": [ | 
|  | 48 | +		"source=${localEnv:HOME}/.config/gh/hosts.yml,target=/root/.config/gh/hosts.yml,type=bind,consistency=cached,source-exists=true" | 
|  | 49 | +	] | 
|  | 50 | +} | 
0 commit comments