Release script does not work on MacOs Big Sur
Descriptions of the changes in this PR:
Fixed the script/docker run command to mount to `/home/$USER` instead of mac-style `/Users/$USER`.
### Motivation
`dev/release/000-run-docker.sh` failed to mount source dir (got empty dir instead), printed permissions errors like
```
mkdir: cannot create directory '/root': Permission denied
Can not write to /root/.m2/copy_reference_file.log. Wrong volume permissions? Carrying on ...
```
### Changes
see above
Reviewers: Enrico Olivelli <eolivelli@gmail.com>
This closes #2608 from dlg99/master-release-docker-mac
diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index 259b46e..4ce19c0 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -100,13 +100,15 @@
"
pushd ${BOOKKEEPER_ROOT}
+echo $BOOKKEEPER_ROOT
docker run -i -t \
--rm=true \
-w ${BOOKKEEPER_ROOT} \
-u "${USER}" \
- -v "$(realpath $BOOKKEEPER_ROOT):${BOOKKEEPER_ROOT}" \
- -v "$(realpath ~):/home/${USER_NAME}" \
+ -v "$BOOKKEEPER_ROOT:${BOOKKEEPER_ROOT}" \
+ -v "$(realpath ~/):/home/${USER_NAME}" \
+ -e MAVEN_CONFIG=/home/${USER_NAME}/.m2 \
-e VERSION=${VERSION} \
-e MAJOR_VERSION=${MAJOR_VERSION} \
-e NEXT_VERSION=${NEXT_VERSION} \