github.com/openshift/installer@v1.4.17/images/installer-altinfra/Dockerfile.ci (about) 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 # We copy from the -artifacts images because they are statically linked 11 FROM registry.ci.openshift.org/ocp/4.17:installer-kube-apiserver-artifacts AS kas-artifacts 12 FROM registry.ci.openshift.org/ocp/4.17:installer-etcd-artifacts AS etcd-artifacts 13 14 FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder 15 # FIPS support is offered via the baremetal-installer image 16 ENV GO_COMPLIANCE_EXCLUDE=".*" 17 ARG TAGS="altinfra" 18 ARG SKIP_ENVTEST="y" 19 WORKDIR /go/src/github.com/openshift/installer 20 COPY . . 21 COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/ 22 COPY --from=etcd-artifacts /usr/share/openshift/ cluster-api/bin/ 23 RUN mkdir -p cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH) && \ 24 mv cluster-api/bin/$(go env GOOS)/$(go env GOHOSTARCH)/* -t cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH)/ 25 RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh 26 RUN go run -mod=vendor hack/build-coreos-manifest.go 27 28 29 FROM registry.ci.openshift.org/ocp/4.17:base-rhel9 30 COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install 31 COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/ 32 RUN mkdir /output && chown 1000:1000 /output 33 USER 1000:1000 34 ENV PATH /bin 35 ENV HOME /output 36 WORKDIR /output 37 # We're not really an operator, we're just getting some data into the release image. 38 LABEL io.openshift.release.operator=true 39 ENTRYPOINT ["/bin/openshift-install"]