-
Notifications
You must be signed in to change notification settings - Fork 105
/
Dockerfile.okd
26 lines (22 loc) · 1.16 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-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
COPY . .
RUN make osbs-build
FROM registry.ci.openshift.org/origin/4.18: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/zz_generated.crd-manifests/*operatorhubs.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 <[email protected]>"
# entrypoint specified in operator.yaml as `marketplace-operator`
CMD ["/usr/bin/marketplace-operator"]