Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Switch to pigz to support multi-core tar command (#3595)
Browse files Browse the repository at this point in the history
* Update build-artifacts.sh
* Update build-exec-docker.sh
* Update build-docker.sh
  • Loading branch information
windhamwong authored Jul 31, 2020
1 parent f503311 commit 98afe68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/scripts/build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/build-exec-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98afe68

Please sign in to comment.