From 44c8576ab4428c0fa22f46b855cc13071de1b2a9 Mon Sep 17 00:00:00 2001 From: Chinmay Gabel Date: Wed, 21 Feb 2024 07:55:17 -0800 Subject: [PATCH] PE-3802: Copy UI theme file to rootfs fix (#135) * fix ui overwrite issue * adding ui files directly into root fs * Revert "adding ui files directly into root fs" This reverts commit 39d43fa756e97dd25415ef8c55aeaa9a0a87e9ed. * testing changes * fix copy to rootfs --- Earthfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Earthfile b/Earthfile index 4feaa0b..d065177 100644 --- a/Earthfile +++ b/Earthfile @@ -155,14 +155,17 @@ build-iso: COPY --if-exists "$CLUSTERCONFIG" /overlay/opt/spectrocloud/clusterconfig/spc.tgz END - COPY --if-exists ui.tar /overlay/opt/spectrocloud/emc/ - RUN if [ -f /overlay/opt/spectrocloud/emc/ui.tar ]; then \ - tar -xf /overlay/opt/spectrocloud/emc/ui.tar -C /overlay/opt/spectrocloud/emc && \ - rm -f /overlay/opt/spectrocloud/emc/ui.tar; \ - fi + WORKDIR /build COPY --platform=linux/${ARCH} --keep-own +iso-image-rootfs/rootfs /build/image + + COPY --if-exists ui.tar /build/image/opt/spectrocloud/emc/ + RUN if [ -f /build/image/opt/spectrocloud/emc/ui.tar ]; then \ + tar -xf /build/image/opt/spectrocloud/emc/ui.tar -C /build/image/opt/spectrocloud/emc && \ + rm -f /build/image/opt/spectrocloud/emc/ui.tar; \ + fi + IF [ "$ARCH" = "arm64" ] RUN /entrypoint.sh --name $ISO_NAME build-iso --date=false --overlay-iso /overlay dir:/build/image --debug --output /iso/ --arch $ARCH ELSE IF [ "$ARCH" = "amd64" ]