From a6dcf4cd1cec5d0a398ca9b6bc6a4a8f91450a6e Mon Sep 17 00:00:00 2001 From: Vipin Sharma Date: Wed, 1 May 2024 17:25:41 -0700 Subject: [PATCH] Split the ZST file to 3GB chunks. --- Earthfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Earthfile b/Earthfile index e8bbb5d..851e314 100644 --- a/Earthfile +++ b/Earthfile @@ -312,6 +312,8 @@ build-uki-iso: COPY --platform=linux/${ARCH} +luet/luet /overlay/data/luet COPY --if-exists content-*/*.zst /overlay/data/opt/spectrocloud/content/ + RUN split --bytes=3GB --numeric-suffixes /overlay/data/opt/spectrocloud/content/*.zst /overlay/data/opt/spectrocloud/content/content.part + RUN rm /overlay/data/opt/spectrocloud/content/*.zst #check if clusterconfig is passed in IF [ "$CLUSTERCONFIG" != "" ] COPY --if-exists "$CLUSTERCONFIG" /overlay/data/opt/spectrocloud/clusterconfig/spc.tgz @@ -356,6 +358,8 @@ build-iso: COPY overlay/files-iso/ /overlay/ COPY --if-exists user-data /overlay/files-iso/config.yaml COPY --if-exists content-*/*.zst /overlay/opt/spectrocloud/content/ + RUN split --bytes=3GB --numeric-suffixes /overlay/opt/spectrocloud/content/*.zst /overlay/opt/spectrocloud/content/content.part + RUN rm /overlay/opt/spectrocloud/content/*.zst #check if clusterconfig is passed in IF [ "$CLUSTERCONFIG" != "" ] COPY --if-exists "$CLUSTERCONFIG" /overlay/opt/spectrocloud/clusterconfig/spc.tgz