1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

build: add devcontainer configuration (#11670)

This allows users to use Codespaces and VS Code Remote Containers
easily.
This commit is contained in:
Luca Casonato 2021-08-13 14:24:38 +02:00 committed by GitHub
parent 2937f02f00
commit 74d523e924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

8
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-1
# Update to Rust 1.54.0
RUN rustup update 1.54.0 && rustup default 1.54.0
# Install Deno
ENV DENO_INSTALL=/usr/local
RUN curl -fsSL https://deno.land/x/install/install.sh | sh

View file

@ -0,0 +1,26 @@
{
"name": "Rust",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"settings": {
"lldb.executable": "/usr/bin/lldb",
// VS Code don't watch files under ./target
"files.watcherExclude": {
"**/target/**": true
}
},
"extensions": [
"matklad.rust-analyzer",
"bungcip.better-toml",
"vadimcn.vscode-lldb",
"mutantdino.resourcemonitor"
],
"postCreateCommand": "git submodule update --init",
"remoteUser": "vscode"
}