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

Switch to pigz to support multi-core tar command #3595

Merged
merged 3 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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