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.140.1/containers/docker-existing-docker-compose
3
+ // If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
4
+ {
5
+ "name" : " Backend: CHIP Test Harness" ,
6
+ "initializeCommand" : " bash .devcontainer/initializeCommands.sh" , // required to get the environment variables set for the sub-folder backend
7
+ "dockerComposeFile" : [
8
+ " ../docker-compose.yml" ,
9
+ " ../docker-compose.override.yml" ,
10
+ " docker-compose.yml"
11
+ ],
12
+ // The 'service' property is the name of the service for the container that VS Code should
13
+ // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
14
+ "service" : " backend" ,
15
+ // The optional 'workspaceFolder' property is the path VS Code should open by default when
16
+ // connected. This is typically a file mount in .devcontainer/docker-compose.yml
17
+ "workspaceFolder" : " /app" ,
18
+ // Set *default* container specific settings.json values on container create.
19
+ "customizations" : {
20
+ "vscode" : {
21
+ "settings" : {
22
+ "python.pythonPath" : " /usr/local/bin/python" ,
23
+ "python.formatting.blackPath" : " /usr/local/bin/black" ,
24
+ "python.linting.flake8Path" : " /usr/local/bin/flake8" ,
25
+ "python.testing.pytestPath" : " /usr/local/bin/pytest" ,
26
+ "isort.path" : [
27
+ " /usr/local/bin/isort"
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.isort" ,
34
+ " ms-python.flake8" ,
35
+ " ms-python.black-formatter" ,
36
+ " streetsidesoftware.code-spell-checker" ,
37
+ " ms-azuretools.vscode-docker" ,
38
+ " asciidoctor.asciidoctor-vscode" ,
39
+ " 42crunch.vscode-openapi" ,
40
+ " matangover.mypy" ,
41
+ " njpwerner.autodocstring"
42
+ ]
43
+ }
44
+ }
45
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
46
+ // "forwardPorts": [],
47
+ // Uncomment the next line if you want start specific services in your Docker Compose config.
48
+ // "runServices": [],
49
+ // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
50
+ // "shutdownAction": "none",
51
+ // Uncomment the next line to run commands after the container is created - for example installing curl.
52
+ // "postCreateCommand": "apt-get update && apt-get install -y curl",
53
+ // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
54
+ // "remoteUser": "vscode"
55
+ }
0 commit comments