mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
chore: add ubuntu22 devcontainer (#2700)
This commit is contained in:
parent
6df0fa4948
commit
7f02d40b57
5 changed files with 40 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
|||
],
|
||||
"settings": {
|
||||
"cmake.buildDirectory": "/build",
|
||||
"extensions.ignoreRecommendations": true,
|
||||
"cmake.configureArgs": []
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
"twxs.cmake"
|
||||
],
|
||||
"settings": {
|
||||
"cmake.buildDirectory": "/build"
|
||||
"cmake.buildDirectory": "/build",
|
||||
"extensions.ignoreRecommendations": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
22
.devcontainer/ubuntu22/devcontainer.json
Normal file
22
.devcontainer/ubuntu22/devcontainer.json
Normal 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}"
|
||||
}
|
6
.devcontainer/ubuntu22/post-create.sh
Executable file
6
.devcontainer/ubuntu22/post-create.sh
Executable 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
|
Loading…
Reference in a new issue