FROM openshift/ose-operator-registry:v4.4

RUN rm -rf /manifests/* bundles.db

COPY manifests /manifests/

RUN find /manifests/

# Initialize the database
RUN initializer --manifests /manifests --output bundles.db

# There are multiple binaries in the origin-operator-registry
# We want the registry-server
ENTRYPOINT ["registry-server"]
CMD ["--database", "bundles.db"]

LABEL com.redhat.component="ocs-olm-operator-container"
LABEL com.redhat.delivery.appregistry=true
LABEL name="ocs-olm-operator"
LABEL version="4.4.1"
LABEL release="4"
LABEL summary="OLM Metadata for the OCS Operator"
LABEL io.k8s.display-name="ocs-olm-operator"
LABEL maintainer="Boris Ranto <branto@redhat.com>"
LABEL description="OLM Metadata for the OCS Operator"
LABEL io.openshift.tags="ocs"
LABEL ocs.tags="v4.4"
