diff --git a/Dockerfile.rhel b/Dockerfile.rhel new file mode 100644 index 000000000..34d01b15d --- /dev/null +++ b/Dockerfile.rhel @@ -0,0 +1,14 @@ +FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder +WORKDIR /go/src/github.com/openshift/cluster-version-operator +COPY . . +RUN hack/build-go.sh; \ + mkdir -p /tmp/build; \ + cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator + +FROM registry.svc.ci.openshift.org/ocp/4.6:base +COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/ +COPY install /manifests +COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml /manifests/ +COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml /manifests/ +COPY bootstrap /bootstrap +ENTRYPOINT ["/usr/bin/cluster-version-operator"] diff --git a/Dockerfile.rhel7 b/Dockerfile.rhel7 deleted file mode 100644 index 34d01b15d..000000000 --- a/Dockerfile.rhel7 +++ /dev/null @@ -1,14 +0,0 @@ -FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder -WORKDIR /go/src/github.com/openshift/cluster-version-operator -COPY . . -RUN hack/build-go.sh; \ - mkdir -p /tmp/build; \ - cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator - -FROM registry.svc.ci.openshift.org/ocp/4.6:base -COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/ -COPY install /manifests -COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml /manifests/ -COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml /manifests/ -COPY bootstrap /bootstrap -ENTRYPOINT ["/usr/bin/cluster-version-operator"] diff --git a/Dockerfile.rhel7 b/Dockerfile.rhel7 new file mode 120000 index 000000000..46cd531f6 --- /dev/null +++ b/Dockerfile.rhel7 @@ -0,0 +1 @@ +Dockerfile.rhel \ No newline at end of file