From 674f4b32735c3a511137227ba0dcbe0cd65ca5db Mon Sep 17 00:00:00 2001 From: Aibo Hu Date: Thu, 4 Apr 2024 18:34:52 +0000 Subject: [PATCH] update devcontainer --- .devcontainer/Dockerfile | 3 ++- .devcontainer/devcontainer.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 65bf96c..11d0cc9 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:lunar RUN apt-get update && apt-get install -y \ libssl-dev gcc-13 g++-13 libprotobuf-c-dev libprotobuf-dev libgrpc-dev libspdlog-dev libfmt-dev llvm-14-dev libedit-dev libcxxopts-dev libpfm4-dev liblldb-dev libbenchmark-dev ninja-build libpcap-dev libopenblas-pthread-dev \ + librdmacm-dev libibverbs-dev \ wget git cmake ninja-build python3 python3-pip \ lsb-release software-properties-common gnupg @@ -17,6 +18,6 @@ RUN wget -4 -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ && add-apt-repository -y "deb http://apt.llvm.org/lunar/ llvm-toolchain-lunar-17 main" \ && apt-get update \ && apt-get install -y clang-17 lldb-17 lld-17 clangd-17 \ - tmux vim gdb wabt neovim + tmux vim gdb wabt neovim htop USER ubuntu diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d204145..a843265 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -42,5 +42,6 @@ // "postCreateCommand": "pip3 install --user -r requirements.txt", // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "ubuntu" + "remoteUser": "ubuntu", + "runArgs": ["--privileged"] } \ No newline at end of file