chore: add ubuntu22 devcontainer (#2700)

This commit is contained in:
Roman Gershman
2024-03-09 17:38:01 +02:00
committed by GitHub
parent 6df0fa4948
commit 7f02d40b57
5 changed files with 40 additions and 3 deletions

View File

@ -11,6 +11,7 @@
],
"settings": {
"cmake.buildDirectory": "/build",
"extensions.ignoreRecommendations": true,
"cmake.configureArgs": []
}
}

View File

@ -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"
]
}

View File

@ -10,7 +10,8 @@
"twxs.cmake"
],
"settings": {
"cmake.buildDirectory": "/build"
"cmake.buildDirectory": "/build",
"extensions.ignoreRecommendations": true
}
}
},

View File

@ -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}"
}

View File

@ -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