Skip to content

OPRUN-3221: image just as a cli source for mirror publishing #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions operator-framework-cli.Dockerfile

This file was deleted.

28 changes: 28 additions & 0 deletions operator-framework-clis.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder-rhel8
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
WORKDIR /src
COPY . .
RUN make build/registry cross

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

FROM scratch

COPY --from=builder /src/bin/opm /clis/opm-rhel9
COPY --from=builder /src/bin/darwin-amd64-opm /clis/darwin-amd64-opm
COPY --from=builder /src/bin/windows-amd64-opm /clis/windows-amd64-opm

# copy the dynamically-linked versions to /clis with a -rhel8 suffix
COPY --from=builder-rhel8 /src/bin/opm /clis/opm-rhel8

USER 1001

LABEL io.k8s.display-name="OpenShift Operator Framework CLIs" \
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." \
maintainer="Odin Team <[email protected]>"