From 8f0270c0cf7ed28943686325b8d329bcd2f497b2 Mon Sep 17 00:00:00 2001 From: Laurence Rowe Date: Tue, 12 Sep 2023 08:33:07 -0700 Subject: [PATCH] fix(devcontainer): Add build deps and update extension in devcontainer (#20467) * Installs `cmake` and `protoc` build dependencies in the docker container. * Replaced deprecated TOML extension with its suggested alternative. Note: At least 16GB is required to build Deno, so ensure you use 'New with options' and select at least the 4-core/16GB machine type when starting in GitHub Codespaces. --- .devcontainer/Dockerfile | 6 ++++++ .devcontainer/devcontainer.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c573d7b60f..a823829419 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,11 @@ FROM mcr.microsoft.com/vscode/devcontainers/rust:1-bullseye +# Install cmake and protobuf-compiler +RUN apt-get update \ + && apt-get install -y cmake \ + && apt-get install -y protobuf-compiler \ + && rm -rf /var/lib/apt/lists/* + # Install Deno ENV DENO_INSTALL=/usr/local RUN curl -fsSL https://deno.land/x/install/install.sh | sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 94b96a6eb6..0c2a26b800 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,7 @@ "extensions": [ "rust-lang.rust-analyzer", - "bungcip.better-toml", + "tamasfe.even-better-toml", "vadimcn.vscode-lldb", "mutantdino.resourcemonitor" ],