-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.bundle
68 lines (53 loc) · 2.52 KB
/
Dockerfile.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM registry.redhat.io/ubi9/ubi:latest@sha256:2bae9062eddbbc18e76555972e7026ffe02cef560a0076e6d7f72bed2c05723f as builder-deps
USER root
WORKDIR /
RUN mkdir /licenses
COPY jaeger-operator/LICENSE /licenses/.
RUN dnf install -y python3 python3-ruamel-yaml-clib python3-ruamel-yaml patch
# Use a new stage to enable caching of the package installations for local development
FROM builder-deps as builder
COPY bundle-patch .
COPY jaeger-operator/bundle/manifests /manifests/
COPY jaeger-operator/bundle/metadata /metadata/
RUN ls /manifests -al
RUN ls /metadata -al
# stage - registry.stage.redhat.io, prod - registry.redhat.io
ARG REGISTRY=quay.io/redhat-user-workloads
RUN ./update_bundle.sh && cat /manifests/jaeger-operator.clusterserviceversion.yaml /metadata/annotations.yaml
FROM registry.redhat.io/ubi8/ubi-minimal:latest@sha256:c12e67af6a7e15113d76bc72f10bef2045c026c71ec8b7124c8a075458188a83
WORKDIR /
RUN mkdir /licenses
COPY jaeger-operator/LICENSE /licenses/.
# 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=jaeger-product
LABEL operators.operatorframework.io.bundle.channels.v1=stable
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.29.0
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/
LABEL release="1.62.0-1" \
version="1.62.0-1" \
com.redhat.openshift.versions=v4.12 \
name="rhosdt/jaeger-operator-bundle" \
distribution-scope="public" \
description="Bundle for Jaeger operator" \
io.k8s.description="Bundle for Jaeger operator." \
# TODO check if this is correct
com.redhat.component="rhosdt" \
io.openshift.tags="tracing" \
io.k8s.display-name="Jaeger Operator Bundle" \
url="https://github.com/jaegertracing/jaeger-operator" \
vendor="Red Hat, Inc." \
summary="Jaeger operator bundle" \
maintainer="[email protected]"
# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/
COPY jaeger-operator/bundle/tests/scorecard /tests/scorecard/
ARG USER_UID=1001
USER ${USER_UID}