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:16 UTC

[bookkeeper] branch branch-4.8 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 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 ab18999  Release script: swap mapping of directories
ab18999 is described below

commit ab189996e10dcb895aba7d9f4eac1f9070596b93
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
    
    (cherry picked from commit 5a818b226bf2c3e3d9d649ffe1e690af5ec2f794)
    Signed-off-by: Enrico Olivelli <eo...@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 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} \