Map HOME to grant docker containers access to the ~/.cargo registry cache
This commit is contained in:
parent
98772b16d6
commit
0b878eccf8
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue