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

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


The following commit(s) were added to refs/heads/branch-4.8 by this push:
     new 5e0bc27  Release script: Use realpath() to map to current user home
5e0bc27 is described below

commit 5e0bc27af926a148b13d363ec113556d9d753917
Author: Enrico Olivelli <eolive...@apache.org>
AuthorDate: Tue Sep 11 19:57:26 2018 +0200

    Release script: Use realpath() to map to current user home
    
    This change enables to run the release scripts on linux boxes in which the 
user's home is not at /home/username
    
    Author: Enrico Olivelli <eolive...@apache.org>
    
    Reviewers: Sijie Guo <si...@apache.org>
    
    This closes #1674 from eolivelli/fix/better-userland-mapping
    
    (cherry picked from commit d8f2cd1b88a144b6a00c5b8d68c8071d014f5ece)
    Signed-off-by: Enrico Olivelli <eolive...@apache.org>
---
 dev/release/000-run-docker.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/release/000-run-docker.sh b/dev/release/000-run-docker.sh
index edc5a94..66a94ff 100755
--- a/dev/release/000-run-docker.sh
+++ b/dev/release/000-run-docker.sh
@@ -107,8 +107,8 @@ docker run -i -t \
   --rm=true \
   -w ${BOOKKEEPER_ROOT} \
   -u "${USER}" \
-  -v "${BOOKKEEPER_ROOT}:${BOOKKEEPER_ROOT}" \
-  -v "${LOCAL_HOME}:/home/${USER_NAME}" \
+  -v "${BOOKKEEPER_ROOT}:$(realpath $BOOKKEEPER_ROOT)" \
+  -v "${LOCAL_HOME}:$(realpath ~)" \
   -e VERSION=${VERSION} \
   -e MAJOR_VERSION=${MAJOR_VERSION} \
   -e NEXT_VERSION=${NEXT_VERSION} \

Reply via email to