You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2018/09/12 08:01:00 UTC

[bookkeeper] branch master updated: Release script: swap mapping of directories

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 5a818b2  Release script: swap mapping of directories
5a818b2 is described below

commit 5a818b226bf2c3e3d9d649ffe1e690af5ec2f794
Author: Enrico Olivelli <eo...@apache.org>
AuthorDate: Wed Sep 12 10:00:53 2018 +0200

    Release script: swap mapping of directories
    
    The script assumed that the layout of /home on the host machine is the same as in the container.
    This change makes the script work even on machines in which the HOME is /home/xxxx/username and not simply /home/username
    
    Author: Enrico Olivelli <eo...@apache.org>
    
    Reviewers: Sijie Guo <si...@apache.org>
    
    This closes #1675 from eolivelli/fix/invert-mapping
---
 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 66a94ff..d63e222 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}:$(realpath $BOOKKEEPER_ROOT)" \
-  -v "${LOCAL_HOME}:$(realpath ~)" \
+  -v "$(realpath $BOOKKEEPER_ROOT):${BOOKKEEPER_ROOT}" \
+  -v "$(realpath ~):${LOCAL_HOME}" \
   -e VERSION=${VERSION} \
   -e MAJOR_VERSION=${MAJOR_VERSION} \
   -e NEXT_VERSION=${NEXT_VERSION} \