Awesome
Rust Dev Container
Rust development container for Visual Studio Code
Features
- Rust 1.76.0
- Rust Analyzer 2024-02-05
- Clippy
- Rustfmt
- Alpine based with Docker tags
:latest
and:alpine
- 1.16GB amd64 uncompressed image size
- Compatible with
amd64
- Based on qmcgaw/basedevcontainer:alpine
- Based on Alpine 3.19
- Minimal custom terminal and packages
- See more features
- Debian based with Docker tag
:debian
(1.51GB, based on qmcgaw/basedevcontainer:debian)- 1.21GB amd64 uncompressed image size
- Compatible with
amd64
andarm64
- Based on qmcgaw/basedevcontainer:debian
- Based on Debian Buster slim
- Minimal custom terminal and packages
- See more features
- Cross platform
- Easily bind mount your SSH keys to use with git
- Manage your host Docker from within the dev container, more details at qmcgaw/basedevcontainer
- Extensible with docker-compose.yml
- Comes with extra binary tools for a few extra MBs:
kubectl
,kubectx
,kubens
,stern
andhelm
Requirements
See .devcontainer/README.md#Requirements
Setup for a project
- Setup your configuration files
-
With style 💯
docker run -it --rm -v "/yourrepopath:/repository" qmcgaw/devtainr:v0.2.0 -dev rust -path /repository -name projectname
If you run on Linux not as root, run the
docker run
command with--user="$(id -u):$(id -g)"
.Or use the built binary
-
Or manually: download this repository and put the .devcontainer directory in your project.
-
- If you have a .vscode/settings.json, eventually move the settings to .devcontainer/devcontainer.json in the
"settings"
section as .vscode/settings.json take precedence over the settings defined in .devcontainer/devcontainer.json. - Open the command palette in Visual Studio Code (CTRL+SHIFT+P) and select
Remote-Containers: Open Folder in Container...
and choose your project directory - See .devcontainer/README.md#Setup
Customization
See .devcontainer/README.md#Customization
License
This repository is under an MIT license unless indicated otherwise.