Skip to content

Instantly share code, notes, and snippets.

@pingw33n
pingw33n / linux_cargo_test.sh
Last active May 13, 2020 13:26
Running `cargo test` in Linux Docker container
mkdir -p target/docker_cargo; docker run --rm -it --user "$(id -u)":"$(id -g)" -v "$PWD":/usr/src/app -v "$PWD/target/docker_cargo":/usr/local/cargo/registry -w /usr/src/app rust:$(rustc -V | awk '{print $2}') cargo test