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

Commit 9d4541b

Browse files
authored
Switch to pigz to support multi-core tar command (#3595)
* Update build-artifacts.sh * Update build-exec-docker.sh * Update build-docker.sh
1 parent 3d210cc commit 9d4541b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker/scripts/build-artifacts.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ trap cleanup EXIT
9595

9696
generate_source() {
9797
echo "Generating source tarball"
98-
tar --exclude-from=$DOCKER_DIR/.tarignore -C $PROJECT_DIR -czf $SRC_TAR .
98+
tar --use-compress-program=pigz --exclude-from=$DOCKER_DIR/.tarignore -C $PROJECT_DIR -cf $SRC_TAR .
9999
}
100100

101101
verify_source_exists() {

docker/scripts/build-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ run_build() {
8383

8484
echo "Saving docker image to $DOCKER_IMAGE_FILE"
8585
docker save -o $DOCKER_IMAGE_FILE $DOCKER_TAG
86-
gzip $DOCKER_IMAGE_FILE
86+
pigz $DOCKER_IMAGE_FILE
8787
}
8888

8989
case $# in

docker/scripts/build-exec-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ build_exec_image() {
7575

7676
echo "Saving docker image to $DOCKER_IMAGE_FILE"
7777
docker save -o $DOCKER_IMAGE_FILE $DOCKER_TAG
78-
gzip $DOCKER_IMAGE_FILE
78+
pigz $DOCKER_IMAGE_FILE
7979
}
8080

8181
case $# in

0 commit comments

Comments
 (0)