Skip to content

Commit

Permalink
Testing multi-stage images
Browse files Browse the repository at this point in the history
  • Loading branch information
elfosardo committed Dec 7, 2019
1 parent 27f6b3a commit 3ebd112
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile.ocp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM registry.access.redhat.com/ubi8/python-36:latest AS builder

RUN yum install -y gcc git make

RUN pip3 install ironic

FROM ubi8

RUN yum update -y && \
Expand All @@ -7,9 +13,10 @@ RUN yum update -y && \
yum clean all && \
rm -rf /var/cache/{yum,dnf}/*

copy ./prepare-ipxe.sh /tmp
COPY ./prepare-ipxe.sh /tmp
RUN chmod +x /tmp/prepare-ipxe.sh && /tmp/prepare-ipxe.sh && rm /tmp/prepare-ipxe.sh

COPY --from=builder /tmp/esp.img /httpboot/uefi_esp.img

COPY ./ironic.conf /tmp/ironic.conf
RUN crudini --merge /etc/ironic/ironic.conf < /tmp/ironic.conf && \
Expand Down

0 comments on commit 3ebd112

Please sign in to comment.