-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.marin3r-operator-bundle
48 lines (40 loc) · 2.07 KB
/
Containerfile.marin3r-operator-bundle
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Based on ./gatekeeper-operator/bundle.Dockerfile
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as builder-runner
RUN microdnf install -y skopeo jq python3 python3-pip
RUN pip3 install --upgrade pip && pip3 install ruamel.yaml==0.17.9
# Use a new stage to enable caching of the package installations for local development
FROM builder-runner as builder
COPY bundle-hack .
COPY marin3r/bundle/manifests /manifests/
COPY marin3r/bundle/metadata /metadata/
RUN ./update_bundle.sh
FROM scratch
# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=marin3r-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.34.1
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
# TODO: cleanup if not needed
#LABEL com.redhat.component="marin3r-operator-bundle-container" \
# name="3scale-mas/marin3r-rhel8-operator-metadata" \
# version="${CI_VERSION}" \
# summary="Lighweight, CRD based Envoy control plane for Kubernetes" \
# description="Lighweight, CRD based Envoy control plane for Kubernetes" \
# io.k8s.display-name="MARIN3R" \
# io.openshift.expose-services="" \
# io.openshift.tags="3scale, api, envoy" \
# upstream_repo="${CI_MARIN3R_UPSTREAM_URL}" \
# upstream_ref="${CI_MARIN3R_UPSTREAM_COMMIT}" \
# maintainer="[email protected]"
# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/
COPY marin3r/bundle/tests/scorecard /tests/scorecard/