From cc18da86cb589a242cc8af3ba6542ac9cd59f55a Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 13 Jun 2021 04:23:09 +0000 Subject: [PATCH 1/2] Add basic dev container --- .devcontainer/Dockerfile | 2 ++ .devcontainer/devcontainer.json | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..20757dbd --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,2 @@ +FROM ubuntu +RUN apt update && export DEBIAN_FRONTEND=noninteractive && apt install -y git vim ninja-build cmake gcc g++ make libboost-all-dev diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..fff0e36a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +{ + "build": { "dockerfile": "Dockerfile" }, + "forwardPorts": [], + "extensions": [ + "ms-vscode.cpptools", + "twxs.cmake", + "ms-vscode.cmake-tools", + "waderyan.gitblame", + "github.vscode-pull-request-github", + "ms-vsliveshare.vsliveshare", + "ms-python.python", + "ms-python.python", + "notskm.clang-tidy" + ] +} \ No newline at end of file From 2cf2eead231bbe0c88eaa0d59a56d78bc0f10bea Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 13 Jun 2021 12:58:35 -0400 Subject: [PATCH 2/2] Ensure submodules are cloned --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fff0e36a..39996626 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,6 @@ { "build": { "dockerfile": "Dockerfile" }, + "postCreateCommand": "git submodule update --init", "forwardPorts": [], "extensions": [ "ms-vscode.cpptools", @@ -12,4 +13,4 @@ "ms-python.python", "notskm.clang-tidy" ] -} \ No newline at end of file +}