1
0
Fork 0
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:
Roman Gershman 2024-03-09 17:38:01 +02:00 committed by GitHub
parent 6df0fa4948
commit 7f02d40b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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