-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
88 lines (77 loc) · 3.56 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
{
"name": "${localWorkspaceFolderBasename}",
"initializeCommand":
"printf \"UID=%s\nGID=%s\n\" $(id -u) $(id -g) > ./.env",
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
"dockerComposeFile": [
"../docker-compose.yml"
],
// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "dev",
// Tells devcontainer.json supporting services or tools whether they should run
// /bin/sh -c "while sleep 1000; do :; done" when starting the container instead of the
// container’s default command (since the container can shut down if the default command fails).
"overrideCommand": true,
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// "features": {
// "ghcr.io/devcontainers/features/docker-in-docker:2": {
// "moby": true,
// "azureDnsAutoDetection": true,
// "installDockerBuildx": true,
// "version": "latest",
// "dockerDashComposeVersion": "v2"
// }
// },
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.linux": "bash"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
//"ms-vscode.cpptools",
//"ms-vscode.cpptools-themes",
//"twxs.cmake",
//"ms-vscode.cmake-tools",
//"cschlosser.doxdocgen",
//"jeff-hykin.better-cpp-syntax",
"eugenwiens.bitbake",
"ms-vscode-remote.remote-ssh",
//"coenraads.bracket-pair-colorizer-2",
//"franneck94.vscode-c-cpp-config",
"mhutchie.git-graph",
"github.remotehub",
"waderyan.gitblame",
"ms-azuretools.vscode-docker",
"eamodio.gitlens"
//"oderwat.indent-rainbow",
//"ms-vscode.cpptools-extension-pack"
]
}
},
// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "rm .env && chown -R builder:builder yocto"
// Configure tool-specific properties.
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}