Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions images/baremetal/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This Dockerfile is a used by CI to publish kni/origin-v4.0:installer
# It builds an image containing only the openshift-install.

FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
Comment thread
stbenjam marked this conversation as resolved.
WORKDIR /go/src/github.com/openshift-metalkube/kni-installer
COPY . .
RUN TAGS="libvirt ironic" hack/build.sh


FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
COPY --from=builder /go/src/github.com/openshift-metalkube/kni-installer/bin/kni-install /bin/openshift-install

RUN yum install --setopt=tsflags=nodocs -y \
yum update -y && \
yum install --setopt=tsflags=nodocs -y \
libvirt-libs && \
yum clean all && rm -rf /var/cache/yum/*

RUN mkdir /output && chown 1000:1000 /output
USER 1000:1000
ENV PATH /bin
ENV HOME /output
WORKDIR /output
ENTRYPOINT ["/bin/openshift-install"]