forked from outrigger-project/multiarch-tuning-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Dockerfile
More file actions
23 lines (18 loc) · 971 Bytes
/
index.Dockerfile
File metadata and controls
23 lines (18 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The base image is expected to contain
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
FROM registry.redhat.io/openshift4/ose-operator-registry:v4.13 as builder
USER 0
COPY index.base.yaml /tmp/index.yaml
RUN opm render registry.ci.openshift.org/ocp/multiarch-tuning-op-bundle:main --output=yaml >> /tmp/index.yaml
#RUN cat /tmp/index.yaml
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.16
# Configure the entrypoint and command
ENTRYPOINT ["/bin/opm"]
CMD ["serve", "/configs", "--cache-dir=/tmp/cache"]
COPY LICENSE /licenses/license.txt
# Copy declarative config root into image at /configs and pre-populate serve cache
COPY --from=builder /tmp/index.yaml /configs/multiarch-tuning-operator/index.yaml
RUN ["/bin/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