File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ RUN /usr/libexec/bootc-base-imagectl build-rootfs \
2525 --install dnsmasq \
2626 --install bubblewrap \
2727 --install sudo \
28+ --install vim-minimal \
2829 /target-rootfs
2930
3031FROM scratch AS root
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ RUN podman run --rm ${BOOTC_IMAGE} kubeadm config images list > /output/images.t
2525
2626FROM scratch
2727ARG KUBE_MINOR=1.35
28+ ARG BOOTC_IMAGE
29+ ARG BOOTC_DIGEST
2830LABEL bink.kubeadm-version=${KUBE_MINOR}
31+ LABEL bink.bootc-image=${BOOTC_IMAGE}
32+ LABEL bink.bootc-image-digest=${BOOTC_DIGEST}
2933COPY --from=builder /output/disk.qcow2 /disk.qcow2
3034COPY --from=builder /output/images.txt /images.txt
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ build-bootc-image:
2727build-disk-image : build-bootc-image
2828 @echo " === Building node image with qcow2 disk ==="
2929 STORAGE_PATH=$$(podman info --format '{{.Store.GraphRoot}}' ) && \
30+ BOOTC_DIGEST=$$(podman inspect --format '{{.Digest}}' $(BOOTC_IMAGE ) ) && \
3031 podman build \
3132 --cap-add=SYS_ADMIN \
3233 --cap-add=DAC_READ_SEARCH \
@@ -40,6 +41,7 @@ build-disk-image: build-bootc-image
4041 --build-arg DISK_SIZE=" $( DISK_SIZE) " \
4142 --build-arg MEMORY=" $( BUILD_MEMORY) " \
4243 --build-arg KUBE_MINOR=" $( KUBE_MINOR) " \
44+ --build-arg BOOTC_DIGEST=" $$ BOOTC_DIGEST" \
4345 -t $(NODE_IMAGE ) \
4446 -f Containerfile.disk \
4547 .
You can’t perform that action at this time.
0 commit comments