Skip to content

Commit ab523f2

Browse files
committed
provide example devcontainer.json
1 parent 0c65895 commit ab523f2

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

devcontainer.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "Qt/KDE devcontainer",
3+
"image": "ghcr.io/rfrench3/qt6-kirigami-container:main",
4+
"remoteUser": "user",
5+
"customizations": {
6+
"vscode": {
7+
"settings": {
8+
"cmake.configureOnOpen": true,
9+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
10+
"C_Cpp.default.includePath": [
11+
"${workspaceFolder}/**",
12+
"/usr/include/qt6",
13+
"/usr/include/qt6/**",
14+
],
15+
"C_Cpp.default.defines": [],
16+
"C_Cpp.default.compilerPath": "/usr/bin/clang",
17+
"C_Cpp.default.cStandard": "c17",
18+
"C_Cpp.default.cppStandard": "c++17",
19+
"C_Cpp.default.intelliSenseMode": "linux-clang-x64",
20+
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
21+
},
22+
"extensions": [
23+
"ms-vscode.cpptools-extension-pack",
24+
"ms-vscode.cmake-tools",
25+
"theqtcompany.qt-cpp",
26+
"theqtcompany.qt-core",
27+
"theqtcompany.qt-qml",
28+
],
29+
},
30+
},
31+
32+
"containerEnv": {
33+
"WAYLAND_DISPLAY": "${localEnv:WAYLAND_DISPLAY}",
34+
"XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}",
35+
"XDG_SESSION_TYPE": "${localEnv:XDG_SESSION_TYPE}",
36+
"XDG_CURRENT_DESKTOP": "KDE",
37+
},
38+
"privileged": true,
39+
"mounts": [
40+
"source=${localEnv:XDG_RUNTIME_DIR},target=${localEnv:XDG_RUNTIME_DIR},type=bind,consistency=cached",
41+
"source=/dev/input,target=/dev/input,type=bind",
42+
],
43+
}

0 commit comments

Comments
 (0)