-
Notifications
You must be signed in to change notification settings - Fork 27
/
bundle.openshfit.Dockerfile
48 lines (36 loc) · 1.79 KB
/
bundle.openshfit.Dockerfile
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
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as builder-runner
RUN microdnf install -y 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
ARG FIO_VERSION="1.3.5-dev"
COPY ./bundle-hack .
COPY ./bundle/icons ./icons
COPY ./bundle/manifests ./manifests
COPY ./bundle/metadata ./metadata
RUN ./update_csv.py ./manifests ${FIO_VERSION}
RUN ./update_bundle_annotations.sh
FROM scratch
LABEL name=openshift-file-integrity-operator-bundle
LABEL version=${FIO_VERSION}
LABEL summary='OpenShift File Integrity Operator'
LABEL maintainer='Infrastructure Security and Compliance Team <[email protected]>'
LABEL io.k8s.display-name='File Integrity Operator'
LABEL io.k8s.description='File Integrity Operator'
LABEL com.redhat.component=openshift-file-integrity-operator-bundle-container
LABEL com.redhat.delivery.appregistry=false
LABEL com.redhat.delivery.operator.bundle=true
LABEL com.redhat.openshift.versions="v4.10"
LABEL io.openshift.maintainer.product='OpenShift Container Platform'
LABEL io.openshift.tags=openshift,security,compliance,integrity
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
LABEL operators.operatorframework.io.bundle.channels.v1=stable
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=file-integrity-operator
LABEL License=GPLv2+
# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard