From 31a891f81121954b3981c419af36e1b278bf3bde Mon Sep 17 00:00:00 2001 From: Kunlin Han Date: Tue, 30 Apr 2024 10:44:50 -0700 Subject: [PATCH] Make CVW_MOUNT more usable. --- docs/docker/start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/docker/start.sh b/docs/docker/start.sh index 027c17b68..ce3076574 100755 --- a/docs/docker/start.sh +++ b/docs/docker/start.sh @@ -3,7 +3,10 @@ if [ -n "$USE_PODMAN" ]; then else DOCKER_EXEC=$(which docker) fi -CVW_MOUNT=${CVW_MOUNT:$(pwd)/../../} +if [ -n "$USE_PODMAN" ]; then + CVW_MOUNT=$(pwd)/../../ +fi +echo ${CVW_MOUNT} USERNAME="cad" UBUNTU_WALLY_HASH=$(${DOCKER_EXEC} images --quiet wallysoc/ubuntu_wally) @@ -28,7 +31,7 @@ elif [ -z $TOOLCHAINS_HASH ]; then exit 1 else echo "Get ${TOOLCHAINS_HASH} for toolchains_wally" - ${DOCKER_EXEC} run -it --rm -v ${CVW_MOUNT}:/home/${USERNAME}/cvw wallysoc/toolchains_wally + ${DOCKER_EXEC} run --user root -it --rm -v ${CVW_MOUNT}:/home/${USERNAME}/cvw wallysoc/toolchains_wally fi echo "Successfully reach the end"