-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathContainerfile.aws-load-balancer-operator-bundle
More file actions
71 lines (62 loc) · 3.17 KB
/
Copy pathContainerfile.aws-load-balancer-operator-bundle
File metadata and controls
71 lines (62 loc) · 3.17 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Detect the drift from the bundle.Dockerfile
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS drift
WORKDIR /app
COPY drift-cache/bundle.Dockerfile Dockerfile.cached
COPY bundle.Dockerfile .
# If the command below fails it means that bundle.Dockerfile from this repository changed.
# You have to update the Konflux Containerfile accordingly.
# drift-cache/bundle.Dockerfile can be updated with latest contents once the Konflux version is aligned.
RUN test "$(sha1sum Dockerfile.cached | cut -d' ' -f1)" = "$(sha1sum bundle.Dockerfile | cut -d' ' -f1)"
FROM registry.access.redhat.com/ubi9/ubi:latest as builder-runner
# dummy copy to trigger the drift detection
COPY --from=drift /app/Dockerfile.cached .
COPY wheels /wheels
RUN python3 -m ensurepip && \
python3 -m pip install --no-index --find-links=/wheels 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 VERSION .
COPY bundle-hack .
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
RUN ./update_bundle.sh
FROM scratch
# Define build arguments to receive dynamic values
ARG FULL_COMMIT
ARG GIT_URL
# 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=aws-load-balancer-operator
LABEL operators.operatorframework.io.bundle.channels.v1=stable-v1.3,stable-v1
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable-v1
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.16.0+git
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
# Additional labels.
# should this operator be supported on OCP 4.4 and earlier (old appregistry format)
LABEL com.redhat.delivery.backport: false
# this is a bundle image and should be delivered via an index image
LABEL com.redhat.delivery.operator.bundle: true
LABEL name="albo/aws-load-balancer-operator-bundle"
LABEL version="1.3.2"
LABEL release="1.3.2"
LABEL maintainer='NetworkEdge team <aos-network-edge-staff@redhat.com>'
LABEL io.k8s.display-name='AWS Load Balancer Operator'
LABEL io.k8s.description='Operator bundle for the AWS Load Balancer Operator'
LABEL io.openshift.tags='networking,ingress'
LABEL com.redhat.component='aws-load-balancer-operator-bundle-container'
LABEL cpe="cpe:/a:redhat:aws_lb_optr:1.3::el9"
LABEL com.redhat.license_terms='https://www.redhat.com/agreements'
LABEL description='Operator bundle for the AWS Load Balancer Operator'
LABEL io.openshift.build.commit.id=${FULL_COMMIT}
LABEL io.openshift.build.source-location=${GIT_URL}
LABEL io.openshift.build.commit.url=${GIT_URL}/commit/${FULL_COMMIT}
LABEL description="Operator bundle for the AWS Load Balancer Operator"
LABEL distribution-scope=public
LABEL url="https://github.com/openshift/aws-load-balancer-operator"
LABEL vendor="Red Hat, Inc."
# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/