You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2019/01/29 18:56:16 UTC
[avro] branch master updated: Add ability to add a mount flag for
the docker volumes
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 4fad0f2 Add ability to add a mount flag for the docker volumes
4fad0f2 is described below
commit 4fad0f252d06f5cf4c51fbfdfa2ac966daf55a1f
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Tue Jan 29 13:55:43 2019 -0500
Add ability to add a mount flag for the docker volumes
---
build.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/build.sh b/build.sh
index e7b0db2..1f3dd1b 100755
--- a/build.sh
+++ b/build.sh
@@ -227,10 +227,16 @@ UserSpecificDocker
# within the container and use the result on your normal
# system. And this also is a significant speedup in subsequent
# builds because the dependencies are downloaded only once.
+ #
+ # On OSX, it's highly suggested to set an env variable of:
+ # export DOCKER_MOUNT_FLAG=":delegated"
+ # Using :delegated will drop the "mvn install" time from over 30 minutes
+ # down to under 10. However, editing files from OSX may take a few
+ # extra second before the changes are available within the docker container.
docker run --rm -t -i \
- -v ${PWD}:/home/${USER_NAME}/avro \
+ -v ${PWD}:/home/${USER_NAME}/avro${DOCKER_MOUNT_FLAG} \
-w /home/${USER_NAME}/avro \
- -v ${HOME}/.m2:/home/${USER_NAME}/.m2 \
+ -v ${HOME}/.m2:/home/${USER_NAME}/.m2${DOCKER_MOUNT_FLAG} \
-v ${HOME}/.gnupg:/home/${USER_NAME}/.gnupg \
-u ${USER_NAME} \
${DOCKER_XTRA_ARGS} \