Skip to content

Commit

Permalink
fix(devcontainer): Add build deps and update extension in devcontainer (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
lrowe committed Sep 12, 2023
1 parent 08d2a32 commit 8f0270c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,7 @@

"extensions": [
"rust-lang.rust-analyzer",
"bungcip.better-toml",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb",
"mutantdino.resourcemonitor"
],
Expand Down

0 comments on commit 8f0270c

Please sign in to comment.