aboutsummaryrefslogtreecommitdiffstats
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
parentfix: use apt to install qt6 (diff)
downloadGpgFrontend-78a14fb1c0f6a3200a7f0ac7b5f1ea28ccd2385b.tar.gz
GpgFrontend-78a14fb1c0f6a3200a7f0ac7b5f1ea28ccd2385b.zip
fix: some issues when using dev container
-rw-r--r--.devcontainer/Dockerfile3
-rw-r--r--.devcontainer/devcontainer.json14
2 files changed, 16 insertions, 1 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 94aa02c5..9c778697 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -23,11 +23,14 @@ RUN apt-get update && \
texinfo \
gcc \
g++ \
+ ccache \
ninja-build \
+ libgtest-dev \
libarchive-dev \
libssl-dev \
libgpgme-dev \
qt6-base-dev \
qt6-tools-dev \
+ clangd \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \ No newline at end of file
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 .."
+ }
}