Skip to content
Snippets Groups Projects
Verified Commit c73c190c authored by Martin Stump's avatar Martin Stump
Browse files

Add devcontainer


Signed-off-by: default avatarMartin Stump <martin.stump@mercedes-benz.com>
parent e6945272
No related branches found
No related tags found
No related merge requests found
FROM mcr.microsoft.com/devcontainers/cpp:0-ubuntu-20.04
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
ccache \
clang-format \
clang-tidy \
curl \
doxygen \
graphviz \
libgtest-dev \
python3-pip
RUN pip --no-cache-dir install cmakelang
{
"name": "Yase",
"build": {
"dockerfile": "Dockerfile",
"args": {
// NOTE temp workaround for docker v23, see https://github.com/microsoft/vscode-remote-release/issues/7958
"BUILDKIT_INLINE_CACHE": "0"
}
},
"capAdd": [
"SYS_PTRACE"
],
"securityOpt": [
"seccomp=unconfined"
],
"features": {
"ghcr.io/balazs23/devcontainers-features/bazel:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"cheshirekow.cmake-format",
"ms-vscode.cmake-tools",
"ms-vscode.cpptools",
"ms-vscode.live-server",
"redhat.vscode-yaml"
],
"settings": {
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.exportCompileCommandsFile": true,
"cmake.generator": "Ninja",
"cmake.installPrefix": "${workspaceFolder}/build/prefix",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"files.associations": {
".clang-format": "yaml",
".clang-tidy": "yaml",
".clangd": "yaml",
".cmake-format": "yaml",
"*.cmake.in": "cmake"
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment