mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 08:16:29 +00:00
Merge pull request #1877 from kylev/kv_faster_devcon
Simplify and shrink development container
This commit is contained in:
commit
cc27966980
2 changed files with 5 additions and 21 deletions
|
@ -1,17 +1,8 @@
|
||||||
{
|
{
|
||||||
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
|
"image": "mcr.microsoft.com/devcontainers/rust:1",
|
||||||
"waitFor": "onCreateCommand",
|
"updateContentCommand": ["cargo", "build"],
|
||||||
"onCreateCommand": ".devcontainer/setup.sh",
|
"postAttachCommand": ["rustlings", "watch"],
|
||||||
"updateContentCommand": "cargo build",
|
"remoteEnv": {
|
||||||
"postCreateCommand": "",
|
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/target/debug"
|
||||||
"postAttachCommand": {
|
|
||||||
"server": "rustlings watch"
|
|
||||||
},
|
|
||||||
"customizations": {
|
|
||||||
"vscode": {
|
|
||||||
"extensions": [
|
|
||||||
"rust-lang.rust-analyzer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
||||||
|
|
||||||
# Update current shell environment variables after install to find rustup
|
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
rustup install stable
|
|
||||||
bash install.sh
|
|
Loading…
Reference in a new issue