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