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
13 changes: 13 additions & 0 deletions images/installer/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This Dockerfile is a used by CI to publish openshift/origin-v4.0:installer

FROM openshift/origin-release:golang-1.10 AS build
WORKDIR /go/src/github.com/openshift/installer
COPY . .
RUN hack/build.sh && hack/get-terraform.sh
Copy link
Member Author

Choose a reason for hiding this comment

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

We'll have to replace the curl-based get-terraform.sh here with a yum call or some such to comply with Red Hat's OCP Automated Release Policies. But that's probably not too much of a rush. I think get-terraform.sh should stay curl-based to be package-manager agnostic.

Copy link
Contributor

Choose a reason for hiding this comment

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

Vendoring a copy of terraform into a repo is probably the best option if you need a specific tagged commit. If you have to change X at a high rate, the pain you'll feel from RPM iteration will outweigh any ugliness of vendoring.


FROM scratch
COPY --from=build /go/src/github.com/openshift/installer/bin /bin
ENV PATH /bin
ENV HOME /
WORKDIR /
ENTRYPOINT ["/bin/openshift-install"]