Skip to content

Commit b326067

Browse files
authored
Merge pull request #48 from alicefr/update-node-image
Update node image
2 parents b08d216 + 83c9eb8 commit b326067

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

node-images/fedora/Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

3031
FROM scratch AS root

node-images/fedora/Containerfile.disk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ RUN podman run --rm ${BOOTC_IMAGE} kubeadm config images list > /output/images.t
2525

2626
FROM scratch
2727
ARG KUBE_MINOR=1.35
28+
ARG BOOTC_IMAGE
29+
ARG BOOTC_DIGEST
2830
LABEL bink.kubeadm-version=${KUBE_MINOR}
31+
LABEL bink.bootc-image=${BOOTC_IMAGE}
32+
LABEL bink.bootc-image-digest=${BOOTC_DIGEST}
2933
COPY --from=builder /output/disk.qcow2 /disk.qcow2
3034
COPY --from=builder /output/images.txt /images.txt

node-images/fedora/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build-bootc-image:
2727
build-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
.

0 commit comments

Comments
 (0)