A Rust development container for Visual Studio Code
89
A 🦀 Rust development container for Visual Studio Code.
The intention behind this project is to create a base development container that can be used in individual project repositories to setup an out-of-the-box development experience so that developers can get going quickly.
The easiest way to get started is to download the /templates/.devcontainer folder into your current project.
curl -L https://github.com/klein2ms/rust-devcontainer/archive/master.tar.gz | tar -xz --strip=2 rust-devcontainer-master/template/.devcontainer
In VSCode, open the Command Palette F1 and select Remote-Containers: Reopen in Container.
The base devcontainer image accepts build arguments that can be set when building a derived image to extend the base image with additional packages and configurations.
This prevents the need of having to author additional code in the Dockerfile for a derived image. But, obviously that can be done as well.
Add DEBIAN_DEPS with a list of space separated packages to the list of build arguments.
# .devcontainer/docker-compose.yml
app:
build:
args:
DEBIAN_DEPS: "nano tree"
Add NPM_DEPS with a list of space separated packages to the list of build arguments.
# .devcontainer/docker-compose.yml
app:
build:
args:
NPM_DEPS: "yarn gulp"
This repository is under an MIT license unless otherwise indicated.
Content type
Image
Digest
sha256:cbf0240ba…
Size
678.7 MB
Last updated
over 3 years ago
docker pull klein2ms/rust-devcontainer:0-1