Skip to content

Commit

Permalink
chore: add ubuntu22 devcontainer (dragonflydb#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
romange authored Mar 9, 2024
1 parent 6df0fa4 commit 7f02d40
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
1 change: 1 addition & 0 deletions .devcontainer/alpine/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"settings": {
"cmake.buildDirectory": "/build",
"extensions.ignoreRecommendations": true,
"cmake.configureArgs": []
}
}
Expand Down
11 changes: 9 additions & 2 deletions .devcontainer/fedora/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
3 changes: 2 additions & 1 deletion .devcontainer/ubuntu20/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"twxs.cmake"
],
"settings": {
"cmake.buildDirectory": "/build"
"cmake.buildDirectory": "/build",
"extensions.ignoreRecommendations": true
}
}
},
Expand Down
22 changes: 22 additions & 0 deletions .devcontainer/ubuntu22/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions .devcontainer/ubuntu22/post-create.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f02d40

Please sign in to comment.