aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer/devcontainer.json
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-08-12 11:09:26 +0000
committersaturneric <[email protected]>2024-08-12 11:09:26 +0000
commit78a14fb1c0f6a3200a7f0ac7b5f1ea28ccd2385b (patch)
tree28cb1934ece90a58142a2b9099bea01f5fb611d9 /.devcontainer/devcontainer.json
parentfix: use apt to install qt6 (diff)
downloadGpgFrontend-78a14fb1c0f6a3200a7f0ac7b5f1ea28ccd2385b.tar.gz
GpgFrontend-78a14fb1c0f6a3200a7f0ac7b5f1ea28ccd2385b.zip
fix: some issues when using dev container
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r--.devcontainer/devcontainer.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index f94bcc8c..e385e2e3 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -2,13 +2,20 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
{
"name": "C++",
+
+ "hostRequirements": {
+ "cpus": 4,
+ "memory": "8gb",
+ "storage": "32gb"
+ },
+
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {},
"ghcr.io/nils-geistmann/devcontainers-features/zsh:0": {}
- }
+ },
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
@@ -24,4 +31,9 @@
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
+
+ "postCreateCommand": {
+ "git": "git submodule update --recursive --init",
+ "build": "mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug .."
+ }
}