From 0b878eccf8eeaa267417642a01f3b6dad00c611f Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 30 Jun 2018 21:21:00 -0700 Subject: [PATCH] Map HOME to grant docker containers access to the ~/.cargo registry cache --- ci/docker-run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/docker-run.sh b/ci/docker-run.sh index b37ff28dff..35611a87a0 100755 --- a/ci/docker-run.sh +++ b/ci/docker-run.sh @@ -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")