Skip to content

Instantly share code, notes, and snippets.

@pingw33n
Last active May 13, 2020 13:26
Show Gist options
  • Save pingw33n/31bbca5ef029a79fb24dc5b9a728a0b0 to your computer and use it in GitHub Desktop.
Save pingw33n/31bbca5ef029a79fb24dc5b9a728a0b0 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment