This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch branch-4.12
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/branch-4.12 by this push:
new 4e84477 Release script does not work on MacOs Big Sur
4e84477 is described below
commit 4e8447757daa8b57b55e2896373406bfbccc9bcb
Author: Andrey Yegorov <[email protected]>
AuthorDate: Wed Feb 17 12:13:14 2021 -0800
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 <[email protected]>
This closes #2608 from dlg99/master-release-docker-mac
(cherry picked from commit e0ddda48620f124deb26c16e165f5e7b84f6534d)
Signed-off-by: Enrico Olivelli <[email protected]>
---
dev/release/000-run-docker.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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 @@ bash
"
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} \