generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat build: add wider cmake presets and devcontainers support (#69)
- Loading branch information
Showing
18 changed files
with
127 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This is the minimal devcontainers configuration e.g. for use in VSCode or CLion. | ||
If you don't use devcontainers, feel free to delete this directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"image": "ghcr.io/userver-framework/ubuntu-22.04-userver-pg-dev", | ||
"remoteUser": "user", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/user/service_template,type=bind", | ||
"workspaceFolder": "/home/user/service_template", | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
"forwardPorts": [ | ||
8080 | ||
], | ||
"containerEnv": { | ||
"SHELL": "/bin/bash", | ||
"PREFIX": "${PREFIX:-~/.local}", | ||
"CCACHE_DIR": "/home/user/service_template/.ccache", | ||
"CORES_DIR": "/cores" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"llvm-vs-code-extensions.vscode-clangd", | ||
"ms-vscode.cmake-tools", | ||
"ms-vscode.makefile-tools", | ||
"vadimcn.vscode-lldb", | ||
"ms-azuretools.vscode-docker" | ||
], | ||
"settings": { | ||
"cmake.automaticReconfigure": false, | ||
"cmake.configureOnEdit": false, | ||
"cmake.configureOnOpen": false, | ||
"cmake.copyCompileCommands": "${workspaceFolder}/.vscode/compile_commands.json", | ||
"clangd.path": "/usr/bin/clangd", | ||
"clangd.arguments": [ | ||
"--background-index", | ||
"--compile-commands-dir=.vscode", | ||
"--clang-tidy", | ||
"--completion-style=detailed", | ||
"--header-insertion=never" | ||
] | ||
} | ||
} | ||
}, | ||
"onCreateCommand": "sudo git config --global --add safe.directory /home/user/service_template", | ||
"mounts": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.