|
1 | | -ARG VERSION="1.0.0" |
2 | | -ARG CHANNELS="stable,stable-v1.0" |
3 | | -ARG DEFAULT_CHANNEL="stable" |
4 | | -ARG BUNDLE_OVERLAY="olm" |
5 | | -ARG BUNDLE_GEN_FLAGS="-q --overwrite=false --version $VERSION --channels=$CHANNELS --default-channel=$DEFAULT_CHANNEL" |
6 | | -ARG IMG |
7 | | - |
8 | | -FROM registry.redhat.io/openshift4/ose-cli-rhel9@sha256:d072d9873f622071f928616bb7b5024e609363bb11c7d2786b966102e5c5f5b9 AS oc-builder |
9 | | -FROM registry.redhat.io/openshift4/ose-operator-sdk-rhel9@sha256:8ff0cb8587bbca8809490ff59a67496599b6c0cc8e4ca88451481a265f17e581 AS builder |
10 | | - |
11 | | -ARG BUNDLE_GEN_FLAGS |
12 | | -ARG IMG |
13 | | - |
14 | | -WORKDIR /tmp |
15 | | - |
16 | | -COPY ./config/ ./config/ |
17 | | -COPY PROJECT . |
18 | | -COPY hack/build-bundle.sh build-bundle.sh |
19 | | -COPY helm-charts helm-charts |
20 | | -COPY --from=oc-builder /usr/bin/oc /usr/bin/oc |
21 | | - |
22 | | -USER root |
23 | | - |
24 | | -RUN ./build-bundle.sh |
25 | | - |
26 | 1 | FROM scratch |
27 | 2 |
|
28 | | -ARG CHANNELS |
29 | | -ARG VERSION |
30 | | - |
31 | 3 | # Core bundle labels. |
32 | 4 | LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1 |
33 | 5 | LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/ |
34 | 6 | LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ |
35 | 7 | LABEL operators.operatorframework.io.bundle.package.v1=policy-controller-operator |
36 | | -LABEL operators.operatorframework.io.bundle.channels.v1=stable,stable-v1.0 |
| 8 | +LABEL operators.operatorframework.io.bundle.channels.v1=alpha |
37 | 9 | LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.39.2 |
38 | 10 | LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1 |
39 | 11 | LABEL operators.operatorframework.io.metrics.project_layout=helm.sdk.operatorframework.io/v1 |
40 | | -LABEL operators.openshift.io/valid-subscription="Red Hat Trusted Artifact Signer" |
41 | 12 |
|
42 | 13 | # Labels for testing. |
43 | 14 | LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1 |
44 | 15 | LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/ |
45 | 16 |
|
46 | | -LABEL maintainer="Red Hat, Inc." |
47 | | -LABEL vendor="Red Hat, Inc." |
48 | | -LABEL url="https://www.redhat.com" |
49 | | -LABEL distribution-scope="public" |
50 | | -LABEL version=$VERSION |
51 | | - |
52 | | -LABEL description="The bundle image for the Policy Controller Operator, containing manifests, metadata and testing scorecard." |
53 | | -LABEL io.k8s.description="The bundle image for the Policy Controller Operator, containing manifests, metadata and testing scorecard." |
54 | | -LABEL io.k8s.display-name="RHTAS Policy Controller Operator bundle container image for Red Hat Trusted Artifact Signer." |
55 | | -LABEL io.openshift.tags="policy-controller-operator-bundle, policy-controller-operator, Red Hat Trusted Artifact Signer." |
56 | | -LABEL summary="Operator Bundle for the Policy Controller Operator." |
57 | | -LABEL com.redhat.component="policy-controller-operator-bundle" |
58 | | -LABEL name="rhtas/policy-controller-operator-bundle" |
59 | | - |
60 | | -LABEL features.operators.openshift.io/cni="false" |
61 | | -LABEL features.operators.openshift.io/disconnected="false" |
62 | | -LABEL features.operators.openshift.io/fips-compliant="false" |
63 | | -LABEL features.operators.openshift.io/proxy-aware="false" |
64 | | -LABEL features.operators.openshift.io/cnf="false" |
65 | | -LABEL features.operators.openshift.io/csi="false" |
66 | | -LABEL features.operators.openshift.io/tls-profiles="false" |
67 | | -LABEL features.operators.openshift.io/token-auth-aws="false" |
68 | | -LABEL features.operators.openshift.io/token-auth-azure="false" |
69 | | -LABEL features.operators.openshift.io/token-auth-gcp="false" |
70 | | - |
71 | 17 | # Copy files to locations specified by labels. |
72 | | -COPY --from=builder /tmp/bundle/manifests /manifests/ |
73 | | -COPY --from=builder /tmp/bundle/metadata /metadata/ |
74 | | -COPY --from=builder /tmp/bundle/tests/scorecard /tests/scorecard/ |
75 | | -COPY LICENSE /licenses/license.txt |
| 18 | +COPY bundle/manifests /manifests/ |
| 19 | +COPY bundle/metadata /metadata/ |
| 20 | +COPY bundle/tests/scorecard /tests/scorecard/ |
0 commit comments