Skip to content

Commit 0a13188

Browse files
committed
[PoC] Make ironic-image buildable with UBI-style base images
Makes build works with BASE_IMAGE=quay.io/centos/centos:stream9-minimal. Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
1 parent 3457998 commit 0a13188

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FROM $BASE_IMAGE AS ironic-builder
88

99
ARG IPXE_COMMIT_HASH=e965f179e1654103eca33feed7a9cc4c51d91be6
1010

11+
RUN dnf --version || microdnf install -y dnf
1112
RUN dnf install -y gcc git make xz-devel
1213

1314
WORKDIR /tmp
@@ -54,6 +55,7 @@ COPY ironic-config/inspector.ipxe.j2 ironic-config/httpd-ironic-api.conf.j2 \
5455
COPY prepare-image.sh patch-image.sh configure-nonroot.sh /bin/
5556
COPY scripts/ /bin/
5657

58+
RUN dnf --version || ln -s /usr/bin/microdnf /usr/bin/dnf
5759
RUN prepare-image.sh && rm -f /bin/prepare-image.sh
5860

5961
# IRONIC #

0 commit comments

Comments
 (0)