forked from operator-framework/operator-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.okd
26 lines (22 loc) · 1.13 KB
/
Dockerfile.okd
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
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
COPY . .
RUN make osbs-build
FROM registry.ci.openshift.org/origin/4.14:base
RUN useradd marketplace-operator
USER marketplace-operator
COPY --from=builder /go/src/github.com/operator-framework/operator-marketplace/build/_output/bin/marketplace-operator /usr/bin
COPY defaults /defaults
COPY manifests /manifests
COPY vendor/github.com/openshift/api/config/v1/*operatorhub.crd.yaml /manifests
USER root
RUN sed -i 's;registry.redhat.io;registry.access.redhat.com;' /defaults/03_community_operators.yaml
COPY hack/okd/ /manifests
USER marketplace-operator
LABEL io.k8s.display-name="OpenShift Marketplace Operator" \
io.k8s.description="This is a component of OpenShift Container Platform and manages the OpenShift Marketplace." \
io.openshift.tags="openshift,marketplace" \
io.openshift.release.operator=true \
maintainer="AOS Marketplace <aos-marketplace@redhat.com>"
# entrypoint specified in operator.yaml as `marketplace-operator`
CMD ["/usr/bin/marketplace-operator"]