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

nicknezis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d4541b  Switch to pigz to support multi-core tar command (#3595)
9d4541b is described below

commit 9d4541b34969fb871754086827544e0c6779c27e
Author: Windham Wong <[email protected]>
AuthorDate: Fri Jul 31 11:59:54 2020 +0800

    Switch to pigz to support multi-core tar command (#3595)
    
    * Update build-artifacts.sh
    * Update build-exec-docker.sh
    * Update build-docker.sh
---
 docker/scripts/build-artifacts.sh   | 2 +-
 docker/scripts/build-docker.sh      | 2 +-
 docker/scripts/build-exec-docker.sh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docker/scripts/build-artifacts.sh 
b/docker/scripts/build-artifacts.sh
index 1265a49..f7773f0 100755
--- a/docker/scripts/build-artifacts.sh
+++ b/docker/scripts/build-artifacts.sh
@@ -95,7 +95,7 @@ trap cleanup EXIT
 
 generate_source() {
   echo "Generating source tarball"
-  tar --exclude-from=$DOCKER_DIR/.tarignore -C $PROJECT_DIR -czf $SRC_TAR .
+  tar --use-compress-program=pigz --exclude-from=$DOCKER_DIR/.tarignore -C 
$PROJECT_DIR -cf $SRC_TAR .
 }
 
 verify_source_exists() {
diff --git a/docker/scripts/build-docker.sh b/docker/scripts/build-docker.sh
index 3c8daa5..46d4c87 100755
--- a/docker/scripts/build-docker.sh
+++ b/docker/scripts/build-docker.sh
@@ -83,7 +83,7 @@ run_build() {
 
   echo "Saving docker image to $DOCKER_IMAGE_FILE"
   docker save -o $DOCKER_IMAGE_FILE $DOCKER_TAG
-  gzip $DOCKER_IMAGE_FILE
+  pigz $DOCKER_IMAGE_FILE
 } 
 
 case $# in
diff --git a/docker/scripts/build-exec-docker.sh 
b/docker/scripts/build-exec-docker.sh
index 88d615a..84d85ca 100755
--- a/docker/scripts/build-exec-docker.sh
+++ b/docker/scripts/build-exec-docker.sh
@@ -75,7 +75,7 @@ build_exec_image() {
   
   echo "Saving docker image to $DOCKER_IMAGE_FILE"
   docker save -o $DOCKER_IMAGE_FILE $DOCKER_TAG
-  gzip $DOCKER_IMAGE_FILE
+  pigz $DOCKER_IMAGE_FILE
 }
 
 case $# in

Reply via email to