Map HOME to grant docker containers access to the ~/.cargo registry cache

This commit is contained in:
Michael Vines 2018-06-30 21:21:00 -07:00 committed by Grimes
parent 98772b16d6
commit 0b878eccf8
1 changed files with 2 additions and 3 deletions

View File

@ -22,12 +22,11 @@ shift
ARGS=(
--workdir /solana
--volume "$PWD:/solana"
--env "HOME=/solana"
--volume "$HOME:/home"
--env "CARGO_HOME=/home/.cargo"
--rm
)
ARGS+=(--env "CARGO_HOME=/solana/.cargo")
# kcov tries to set the personality of the binary which docker
# doesn't allow by default.
ARGS+=(--security-opt "seccomp=unconfined")