Skip to content

Commit c9e1ca0

Browse files
committed
image just as a cli source for mirror publishing
Signed-off-by: Jordan <[email protected]>
1 parent c84b6ad commit c9e1ca0

File tree

2 files changed

+28
-55
lines changed

2 files changed

+28
-55
lines changed

operator-framework-cli.Dockerfile

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

operator-framework-clis.Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder-rhel8
2+
ENV GOPATH /go
3+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
4+
WORKDIR /src
5+
COPY . .
6+
RUN make build/registry cross
7+
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
12+
COPY . .
13+
RUN make build/registry cross
14+
15+
FROM scratch
16+
17+
COPY --from=builder /src/bin/opm /clis/opm-rhel9
18+
COPY --from=builder /src/bin/darwin-amd64-opm /clis/darwin-amd64-opm
19+
COPY --from=builder /src/bin/windows-amd64-opm /clis/windows-amd64-opm
20+
21+
# copy the dynamically-linked versions to /clis with a -rhel8 suffix
22+
COPY --from=builder-rhel8 /src/bin/opm /clis/opm-rhel8
23+
24+
USER 1001
25+
26+
LABEL io.k8s.display-name="OpenShift Operator Framework CLIs" \
27+
io.k8s.description="This is a non-runnable image containing binary builds of various Operator Framework CLI tools, primarily used to publish binaries to the OpenShift mirror." \
28+
maintainer="Odin Team <[email protected]>"

0 commit comments

Comments
 (0)