Skip to content

Commit 29e4d10

Browse files
committed
images/installer: Rewrite tectonic-installer for openshift-install
The golang-1.10 image has everything we need to build now. I run the build in a golang-1.10 container using 'FROM ... AS ...' [1] like we used to. But now I no longer install packages with yum. And I use a recursive COPY [2] to bring the built/fetched binaries over into the output container, which is based on scratch. Once we switch openshift/release over to this Dockerfile, we can drop images/tectonic-installer. [1]: https://docs.docker.com/engine/reference/builder/#from [2]: https://docs.docker.com/engine/reference/builder/#copy
1 parent a8cce08 commit 29e4d10

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

images/installer/Dockerfile.ci

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This Dockerfile is a used by CI to publish openshift/origin-v4.0:installer
2+
3+
FROM openshift/origin-release:golang-1.10 AS build
4+
WORKDIR /go/src/github.com/openshift/installer
5+
COPY . .
6+
RUN hack/build.sh && hack/get-terraform.sh
7+
8+
FROM scratch
9+
COPY --from=build /go/src/github.com/openshift/installer/bin /bin
10+
ENV PATH /bin
11+
ENV HOME /
12+
WORKDIR /
13+
ENTRYPOINT ["/bin/openshift-install"]

0 commit comments

Comments
 (0)