Rust + Cargo (do not docker pull, see full description)
1.7K
Includes:
Based on Debian Jessie
# specify which rust version to use when creating the container
export DOCKER_RUST_VERSION=1.4.0-racer
# create persistent container
rust-shell create
# run commands
rustc --version
cargo test
# more info
rust-shell help
alias rust-shell='docker run --rm -it --volume "${PWD}:${PWD}" --workdir="${PWD}" -e USER="${USER}" rovjuvano/rust-lang:1.4.0 bash -c "\${@:2}" --'
alias cargo='rust-shell run cargo'
alias rustc='rust-shell run rustc'
cargo test
rust-shell exec gdb target/debug/my-bin-0123456789abcdef
rust-shell exec valgrind target/debug/my-bin-0123456789abcdef
rustc --explain E0001
rust-shell exec env RUST_BACKTRACE=1 cargo run
rust-shell exec /bin/bash
Smoke tested with Docker Toolbox v1.8.1 on MacOS 10.10
Content type
Image
Digest
sha256:e0cfed820…
Size
233 MB
Last updated
over 11 years ago
docker pull rovjuvano/rust-lang