mirror of
https://github.com/rancher/os.git
synced 2025-09-04 08:14:21 +00:00
Use gzip to compress system-docker images for dev build
This commit is contained in:
@@ -17,6 +17,13 @@ if [ -e ".make-vmware" ]; then
|
|||||||
IMAGES="$IMAGES rancher/os-openvmtools:${OPEN_VMTOOLS_VERSION}"
|
IMAGES="$IMAGES rancher/os-openvmtools:${OPEN_VMTOOLS_VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "tar-images: docker save ${IMAGES} > build/images.tar"
|
echo "tar-images: docker save ${IMAGES}"
|
||||||
docker save ${IMAGES} | xz > build/images.tar
|
if [ "$COMPRESS" == "" ]; then
|
||||||
|
docker save ${IMAGES} | gzip > build/images.tar
|
||||||
|
else
|
||||||
|
# system-docker can not load images which compressed by xz with a compression level of 9
|
||||||
|
# decompression consumes more memory if using level 9
|
||||||
|
# the default compression level for xz is 6
|
||||||
|
docker save ${IMAGES} | xz -6 -e > build/images.tar
|
||||||
|
fi
|
||||||
echo "tar-images: DONE"
|
echo "tar-images: DONE"
|
||||||
|
Reference in New Issue
Block a user