-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathcatalog.Dockerfile.downstream
37 lines (28 loc) · 1.49 KB
/
catalog.Dockerfile.downstream
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
35
36
37
ARG OPM_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-ose-operator-registry-rhel9:v4.17
ARG BUILDVERSION
FROM registry.access.redhat.com/ubi9/python-312 as builder
COPY --chown=default . .
RUN pip install -r requirements.txt
RUN ./hack/update-build.sh
FROM $OPM_IMAGE
ARG BUILDVERSION
# Configure the entrypoint and command
ENTRYPOINT ["opm"]
CMD ["serve", "/configs", "--cache-dir=/tmp/cache"]
# Copy declarative config root into image at /configs and pre-populate serve cache
COPY --from=builder /opt/app-root/src/catalog/released /configs/netobserv-operator
COPY --from=builder /opt/app-root/src/catalog/unreleased/downstream-test-fbc/index.yaml /configs/netobserv-operator/
COPY --from=builder /opt/app-root/src/catalog/unreleased/downstream-test-fbc/bundle.yaml /configs/netobserv-operator/
RUN opm serve /configs --cache-dir=/tmp/cache --cache-only
# Set DC-specific label for the location of the DC root directory
# in the image
LABEL operators.operatorframework.io.index.configs.v1=/configs
LABEL com.redhat.component="network-observability-operator-catalog-container"
LABEL name="network-observability-operator-catalog"
LABEL io.k8s.display-name="Network Observability Operator Catalog"
LABEL io.k8s.description="Network Observability Operator Catalog"
LABEL summary="Network Observability Operator Catalog"
LABEL maintainer="[email protected]"
LABEL io.openshift.tags="network-observability-operator-catalog"
LABEL description="Network Observability operator for OpenShift."
LABEL version=$BUILDVERSION