mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
build: add devcontainer configuration (#11670)
This allows users to use Codespaces and VS Code Remote Containers easily.
This commit is contained in:
parent
2937f02f00
commit
74d523e924
2 changed files with 34 additions and 0 deletions
8
.devcontainer/Dockerfile
Normal file
8
.devcontainer/Dockerfile
Normal 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
|
26
.devcontainer/devcontainer.json
Normal file
26
.devcontainer/devcontainer.json
Normal 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"
|
||||
}
|
Loading…
Reference in a new issue