Skip to content

Commit 736c849

Browse files
committed
building rhel8 opm in payload image
Signed-off-by: Jordan <[email protected]>
1 parent b3bfaa4 commit 736c849

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

operator-registry.Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
2-
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder-rhel8
32
ENV GOPATH /go
43
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
5-
64
WORKDIR /src
5+
COPY . .
6+
RUN make build/registry cross
77

8+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
9+
ENV GOPATH /go
10+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
11+
WORKDIR /src
812
COPY . .
913
RUN make build/registry cross
1014

@@ -13,9 +17,12 @@ RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github
1317

1418
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
1519

20+
COPY --from=builder-rhel8 /src/bin/opm /bin/registry/opm-rhel8
21+
1622
COPY --from=builder /src/bin/* /bin/registry/
1723
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe
1824

25+
1926
RUN ln -s /bin/registry/* /bin
2027

2128
RUN mkdir /registry

0 commit comments

Comments
 (0)