mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-22 20:44:28 +00:00
Make CVW_MOUNT more usable.
This commit is contained in:
parent
d196f8f8af
commit
31a891f811
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user