From 1150c00efaa17d08d95005eb03b4f5ae2f6e227b Mon Sep 17 00:00:00 2001 From: huahuiyang Date: Fri, 8 Jul 2016 17:23:57 +0800 Subject: [PATCH] speed up package process when frequency packaging cached gradle and pants dependency file to faster package process in addition, use host network mode in docker to speed up download --- build-artifact.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-artifact.sh b/build-artifact.sh index 333c7a4..6ea6fed 100755 --- a/build-artifact.sh +++ b/build-artifact.sh @@ -34,6 +34,9 @@ run_build() { docker run \ -e AURORA_VERSION=$AURORA_VERSION \ + --net=host \ + -v /root/.gradle:/root/.gradle \ + -v /aurora:/aurora \ -v "$(pwd)/specs:/specs:ro" \ -v "$(realpath $RELEASE_TAR):/src.tar.gz:ro" \ -t "$IMAGE_NAME" /build.sh