Skip to content

Commit aadb8e0

Browse files
committed
images/installer-altinfra: initial Dockerfile
Creates the initial Dockerfile to create an image using the altinfra build tag. The Dockerfie is necessary to have the Terraform-free image built by ART. The altinfra image is a temporary image to provide a Terraform-free image for all providers that have implemented alternate infrastructure providers. Once all providers have implemented non-Terraform solutions it will not be necessary.
1 parent 0b368d7 commit aadb8e0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This Dockerfile is used by CI to publish the installer-altinfra image,
2+
# which, through the use of the altinfra build tag, only uses alternate
3+
# infrastructure providers to the original Terraform implementations.
4+
#
5+
# This image is intended to be temporary: to provide a Terraform-free image
6+
# it only supports the subset of providers that have implemented non-Terraform
7+
# solutions. Once all providers have alternate implementations, this image will
8+
# not be needed.
9+
10+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS builder
11+
ARG TAGS="altinfra"
12+
WORKDIR /go/src/github.com/openshift/installer
13+
COPY . .
14+
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
15+
RUN go run -mod=vendor hack/build-coreos-manifest.go
16+
17+
18+
FROM registry.ci.openshift.org/ocp/4.15:base
19+
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
20+
COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/
21+
RUN mkdir /output && chown 1000:1000 /output
22+
USER 1000:1000
23+
ENV PATH /bin
24+
ENV HOME /output
25+
WORKDIR /output
26+
# We're not really an operator, we're just getting some data into the release image.
27+
LABEL io.openshift.release.operator=true
28+
ENTRYPOINT ["/bin/openshift-install"]

0 commit comments

Comments
 (0)