-
Notifications
You must be signed in to change notification settings - Fork 65
/
operator-framework-tools.Dockerfile
34 lines (28 loc) · 1.3 KB
/
operator-framework-tools.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.18 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.22-openshift-4.18 AS builder
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/4.18:base-rhel9
ENTRYPOINT ["sh", "-c", "echo 'Running this image is not supported' && exit 1"]
# clear any default CMD
CMD []
# copy a rhel-specific instance
COPY --from=builder /src/bin/opm /tools/opm-rhel9
# copy all other generated binaries, including any cross-compiled
COPY --from=builder /src/bin/*opm /tools/
# copy the dynamically-linked versions to /tools with a -rhel8 suffix
COPY --from=builder-rhel8 /src/bin/opm /tools/opm-rhel8
USER 1001
LABEL io.k8s.display-name="OpenShift Operator Framework Tools" \
io.k8s.description="This is a non-runnable image containing binary builds of various Operator Framework tools, primarily used to publish binaries to the OpenShift mirror." \
maintainer="Odin Team <[email protected]>" \
# We're not really an operator, we're just getting some data into the release image.
io.openshift.release.operator=true