From d29a42b0072b6fffbbc2e68d296b4ab1b7908707 Mon Sep 17 00:00:00 2001 From: gabelchinmay Date: Thu, 27 Jun 2024 12:52:07 -0700 Subject: [PATCH 1/2] modify localui customization dir --- Earthfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Earthfile b/Earthfile index 04615cf..e0db1e0 100644 --- a/Earthfile +++ b/Earthfile @@ -358,10 +358,10 @@ build-uki-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; \ + COPY --if-exists emc.tar /overlay/opt/spectrocloud/ + RUN if [ -f /overlay/opt/spectrocloud/emc.tar ]; then \ + tar -xf /overlay/opt/spectrocloud/emc.tar -C /overlay/opt/spectrocloud && \ + rm -f /overlay/opt/spectrocloud/emc.tar; \ fi WORKDIR /build @@ -414,10 +414,10 @@ build-iso: 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; \ + COPY --if-exists emc.tar /build/image/opt/spectrocloud/ + RUN if [ -f /build/image/opt/spectrocloud/emc.tar ]; then \ + tar -xf /build/image/opt/spectrocloud/emc.tar -C /build/image/opt/spectrocloud && \ + rm -f /build/image/opt/spectrocloud/emc.tar; \ fi IF [ "$ARCH" = "arm64" ] From cadf5e895c3073950ff887646dba73a26f519327 Mon Sep 17 00:00:00 2001 From: gabelchinmay Date: Fri, 28 Jun 2024 09:56:09 -0700 Subject: [PATCH 2/2] change emc to local ui --- Earthfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Earthfile b/Earthfile index e0db1e0..1873785 100644 --- a/Earthfile +++ b/Earthfile @@ -358,10 +358,10 @@ build-uki-iso: COPY --if-exists "$CLUSTERCONFIG" /overlay/opt/spectrocloud/clusterconfig/spc.tgz END - COPY --if-exists emc.tar /overlay/opt/spectrocloud/ - RUN if [ -f /overlay/opt/spectrocloud/emc.tar ]; then \ - tar -xf /overlay/opt/spectrocloud/emc.tar -C /overlay/opt/spectrocloud && \ - rm -f /overlay/opt/spectrocloud/emc.tar; \ + COPY --if-exists local-ui.tar /overlay/opt/spectrocloud/ + RUN if [ -f /overlay/opt/spectrocloud/local-ui.tar ]; then \ + tar -xf /overlay/opt/spectrocloud/local-ui.tar -C /overlay/opt/spectrocloud && \ + rm -f /overlay/opt/spectrocloud/local-ui.tar; \ fi WORKDIR /build @@ -414,10 +414,10 @@ build-iso: WORKDIR /build COPY --platform=linux/${ARCH} --keep-own +iso-image-rootfs/rootfs /build/image - COPY --if-exists emc.tar /build/image/opt/spectrocloud/ - RUN if [ -f /build/image/opt/spectrocloud/emc.tar ]; then \ - tar -xf /build/image/opt/spectrocloud/emc.tar -C /build/image/opt/spectrocloud && \ - rm -f /build/image/opt/spectrocloud/emc.tar; \ + COPY --if-exists local-ui.tar /build/image/opt/spectrocloud/ + RUN if [ -f /build/image/opt/spectrocloud/local-ui.tar ]; then \ + tar -xf /build/image/opt/spectrocloud/local-ui.tar -C /build/image/opt/spectrocloud && \ + rm -f /build/image/opt/spectrocloud/local-ui.tar; \ fi IF [ "$ARCH" = "arm64" ]