Skip to content

Commit

Permalink
PE-3802: Copy UI theme file to rootfs fix (#135)
Browse files Browse the repository at this point in the history
* fix ui overwrite issue

* adding ui files directly into root fs

* Revert "adding ui files directly into root fs"

This reverts commit 39d43fa.

* testing changes

* fix copy to rootfs
  • Loading branch information
gabelchinmay authored Feb 21, 2024
1 parent 2b75255 commit 44c8576
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit 44c8576

Please sign in to comment.