Skip to content

Commit

Permalink
finish image vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jan 10, 2025
1 parent b3ee728 commit e34cb54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions images/plural-images-bundle/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion images/plural-images-bundle/vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e34cb54

Please sign in to comment.