Skip to content

Commit 05f3d33

Browse files
Merge pull request #444 from wking/rhel-version-agnostic-dockerfile
Bug 1872080: Dockerfile.rhel: Use a RHEL-version-agnostic filename
2 parents 2114f13 + 32204c0 commit 05f3d33

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

Dockerfile.rhel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder
2+
WORKDIR /go/src/github.com/openshift/cluster-version-operator
3+
COPY . .
4+
RUN hack/build-go.sh; \
5+
mkdir -p /tmp/build; \
6+
cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator
7+
8+
FROM registry.svc.ci.openshift.org/ocp/4.6:base
9+
COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
10+
COPY install /manifests
11+
COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml /manifests/
12+
COPY vendor/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml /manifests/
13+
COPY bootstrap /bootstrap
14+
ENTRYPOINT ["/usr/bin/cluster-version-operator"]

Dockerfile.rhel7

Lines changed: 0 additions & 14 deletions
This file was deleted.

Dockerfile.rhel7

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dockerfile.rhel

0 commit comments

Comments
 (0)