Make CVW_MOUNT more usable.

This commit is contained in:
Kunlin Han 2024-04-30 10:44:50 -07:00
parent d196f8f8af
commit 31a891f811

View File

@ -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"