forked from openshift/osd-metrics-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.olm-registry
More file actions
25 lines (17 loc) · 850 Bytes
/
Dockerfile.olm-registry
File metadata and controls
25 lines (17 loc) · 850 Bytes
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
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.21 AS builder
ARG SAAS_OPERATOR_DIR
COPY ${SAAS_OPERATOR_DIR} manifests
RUN initializer --permissive
# ubi-micro does not work for clusters with fips enabled unless we make OpenSSL available
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7-1771346502
COPY --from=builder /bin/registry-server /bin/registry-server
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
COPY --from=builder /bin/initializer /bin/initializer
WORKDIR /registry
RUN chgrp -R 0 /registry && chmod -R g+rwx /registry
USER 1001
COPY --from=builder /registry /registry
EXPOSE 50051
CMD ["registry-server", "-t", "/tmp/terminate.log"]
# Set the DC specific label for the location of the DC database in the image
LABEL operators.operatorframework.io.index.database.v1=/registry/bundles.db