diff --git a/.devcontainer/alpine/devcontainer.json b/.devcontainer/alpine/devcontainer.json index a642d49af..abb45a00e 100644 --- a/.devcontainer/alpine/devcontainer.json +++ b/.devcontainer/alpine/devcontainer.json @@ -11,6 +11,7 @@ ], "settings": { "cmake.buildDirectory": "/build", + "extensions.ignoreRecommendations": true, "cmake.configureArgs": [] } } diff --git a/.devcontainer/fedora/devcontainer.json b/.devcontainer/fedora/devcontainer.json index 3a9f3f737..410cd216d 100644 --- a/.devcontainer/fedora/devcontainer.json +++ b/.devcontainer/fedora/devcontainer.json @@ -8,7 +8,14 @@ "ms-vscode.cmake-tools", "ms-vscode.cpptools-themes", "twxs.cmake" - ] + ], + "settings": { + "cmake.buildDirectory": "/build", + "extensions.ignoreRecommendations": true + } } - } + }, + "mounts": [ + "source=fedora-vol,target=/build,type=volume" + ] } diff --git a/.devcontainer/ubuntu20/devcontainer.json b/.devcontainer/ubuntu20/devcontainer.json index 30391947e..24e2236a7 100644 --- a/.devcontainer/ubuntu20/devcontainer.json +++ b/.devcontainer/ubuntu20/devcontainer.json @@ -10,7 +10,8 @@ "twxs.cmake" ], "settings": { - "cmake.buildDirectory": "/build" + "cmake.buildDirectory": "/build", + "extensions.ignoreRecommendations": true } } }, diff --git a/.devcontainer/ubuntu22/devcontainer.json b/.devcontainer/ubuntu22/devcontainer.json new file mode 100644 index 000000000..d72df047b --- /dev/null +++ b/.devcontainer/ubuntu22/devcontainer.json @@ -0,0 +1,22 @@ +{ + "name": "ubuntu22", + "image": "ghcr.io/romange/ubuntu-dev:22", + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.cpptools", + "ms-vscode.cmake-tools", + "ms-vscode.cpptools-themes", + "twxs.cmake" + ], + "settings": { + "cmake.buildDirectory": "/build", + "extensions.ignoreRecommendations": true + } + } + }, + "mounts": [ + "source=ubuntu22-vol,target=/build,type=volume" + ], + "postCreateCommand": ".devcontainer/ubuntu22/post-create.sh ${containerWorkspaceFolder}" +} diff --git a/.devcontainer/ubuntu22/post-create.sh b/.devcontainer/ubuntu22/post-create.sh new file mode 100755 index 000000000..4d5606ff2 --- /dev/null +++ b/.devcontainer/ubuntu22/post-create.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +containerWorkspaceFolder=$1 +git config --global --add safe.directory ${containerWorkspaceFolder} +git config --global --add safe.directory ${containerWorkspaceFolder}/helio +mkdir -p /root/.local/share/CMakeTools