From e34cb54157e6d06475ebf60f53587e4455efd9c9 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Fri, 10 Jan 2025 16:53:13 +0100 Subject: [PATCH] finish image vendoring --- images/plural-images-bundle/Dockerfile | 9 ++++----- images/plural-images-bundle/vendor.sh | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/images/plural-images-bundle/Dockerfile b/images/plural-images-bundle/Dockerfile index f8b5aca..a9c9cb2 100644 --- a/images/plural-images-bundle/Dockerfile +++ b/images/plural-images-bundle/Dockerfile @@ -1,11 +1,10 @@ FROM quay.io/skopeo/stable:latest AS builder WORKDIR /images - -ADD --chmod=700 vendor.sh ./vendor.sh - +ADD --chmod=700 vendor.sh /images/vendor.sh RUN ./vendor.sh -# TODO: Copy to scratch image like in https://kairos.io/docs/examples/airgap/. +FROM scratch -RUN ls -al +COPY ./run.sh / +COPY --from=builder /images /assets diff --git a/images/plural-images-bundle/vendor.sh b/images/plural-images-bundle/vendor.sh index b9ba9f5..4eaf9dd 100644 --- a/images/plural-images-bundle/vendor.sh +++ b/images/plural-images-bundle/vendor.sh @@ -11,7 +11,7 @@ pluralsh/agentk:0.0.2 for IMAGE in "${IMAGES[@]}"; do VAR=${IMAGE//\//-} ARCHIVE=${VAR//\:/-} - echo "Copying $IMAGE to $ARCHIVE " + echo "Copying $IMAGE to $ARCHIVE..." skopeo copy docker://"$IMAGE" docker-archive:"$ARCHIVE".tar:"$IMAGE" done