diff options
author | Luca Casonato <hello@lcas.dev> | 2021-08-13 14:24:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 14:24:38 +0200 |
commit | 74d523e924e9cfcc2a36c0e02d5077e1c4154374 (patch) | |
tree | e5078dc6d51c07b167f5aab8aad951869536a054 /.devcontainer | |
parent | 2937f02f00b427bffe1509a40459e02aa62e47b0 (diff) |
build: add devcontainer configuration (#11670)
This allows users to use Codespaces and VS Code Remote Containers
easily.
Diffstat (limited to '.devcontainer')
-rw-r--r-- | .devcontainer/Dockerfile | 8 | ||||
-rw-r--r-- | .devcontainer/devcontainer.json | 26 |
2 files changed, 34 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..b127f11f0 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..d37be58f2 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +} |