From 7f02d40b571a4c5e4cc916563cc512b07fe5a879 Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Sat, 9 Mar 2024 17:38:01 +0200 Subject: [PATCH] chore: add ubuntu22 devcontainer (#2700) --- .devcontainer/alpine/devcontainer.json | 1 + .devcontainer/fedora/devcontainer.json | 11 +++++++++-- .devcontainer/ubuntu20/devcontainer.json | 3 ++- .devcontainer/ubuntu22/devcontainer.json | 22 ++++++++++++++++++++++ .devcontainer/ubuntu22/post-create.sh | 6 ++++++ 5 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/ubuntu22/devcontainer.json create mode 100755 .devcontainer/ubuntu22/post-create.sh 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