This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new e0ddda4  Release script does not work on MacOs Big Sur
e0ddda4 is described below

commit e0ddda48620f124deb26c16e165f5e7b84f6534d
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
---
 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} \

Reply via email to