From 5a40ea3fd74c7237aad4aa1eea010a679747b542 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 30 Jul 2018 16:07:58 -0700 Subject: [PATCH] Only map HOME when in CI --- ci/docker-run.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/docker-run.sh b/ci/docker-run.sh index d33c529e60..dc390fef65 100755 --- a/ci/docker-run.sh +++ b/ci/docker-run.sh @@ -22,11 +22,14 @@ shift ARGS=( --workdir /solana --volume "$PWD:/solana" - --volume "$HOME:/home" - --env "CARGO_HOME=/home/.cargo" --rm ) +if [[ -n $CI ]]; then + ARGS+=(--volume "$HOME:/home") + ARGS+=(--env "CARGO_HOME=/home/.cargo") +fi + # kcov tries to set the personality of the binary which docker # doesn't allow by default. ARGS+=(--security-opt "seccomp=unconfined")