Skip to content
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
8 changes: 5 additions & 3 deletions images/installer/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ WORKDIR /go/src/github.com/openshift/installer
COPY . .
RUN hack/build.sh && hack/get-terraform.sh

FROM scratch

FROM centos:7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is effectively what's happening in production, although it's "whatever the OpenShift base layer is" their and not explicitly "CentOS 7". The image I was building for testing openshift/release#1677 is registry.svc.ci.openshift.org/wking-next-gen-installer/stable:installer in case you want to poke around (I think that is public?). The policy doc has:

Do not ask to have your image based of scratch, busybox, alpine, etc. The request will be denied.

I've dropped an internal comment asking why they forbid scratch, and until then, meh, I'm fine either way ;).

COPY --from=build /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
COPY --from=build /go/src/github.com/openshift/installer/bin/terraform /bin/terraform
RUN mkdir /output && chown 1000:1000 /output
USER 1000:1000
ENV PATH /bin
ENV HOME /
WORKDIR /
ENV HOME /output
WORKDIR /output
ENTRYPOINT ["/bin/openshift-install"]