Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/README.md
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.
47 changes: 47 additions & 0 deletions .devcontainer/devcontainer.json
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": []
}
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ dist-clean:
rm -rf build*
rm -rf tests/__pycache__/
rm -rf tests/.pytest_cache/
rm -rf .ccache
rm -rf .vscode/.cache
rm -rf .vscode/compile_commands.json

# Install
.PHONY: $(addprefix install-, $(PRESETS))
Expand Down
Loading