-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.bundle
67 lines (52 loc) · 2.45 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
FROM registry.redhat.io/ubi9/ubi:latest@sha256:2bae9062eddbbc18e76555972e7026ffe02cef560a0076e6d7f72bed2c05723f as builder
USER root
WORKDIR /
RUN dnf install -y python3 python3-ruamel-yaml-clib python3-ruamel-yaml patch
RUN mkdir /licenses
COPY tempo-operator/LICENSE /licenses/.
COPY bundle-patch .
COPY tempo-operator/bundle/openshift/manifests /manifests/
COPY tempo-operator/bundle/openshift/metadata /metadata/
RUN ls /manifests -al
RUN ls /metadata -al
# stage - registry.stage.redhat.io, prod - registry.redhat.io
# set by tempo-bundle-push pipeline
ARG REGISTRY=quay.io/redhat-user-workloads
RUN ./update_bundle.sh && cat /manifests/tempo-operator.clusterserviceversion.yaml /metadata/annotations.yaml
FROM registry.redhat.io/ubi8/ubi-minimal:latest@sha256:c12e67af6a7e15113d76bc72f10bef2045c026c71ec8b7124c8a075458188a83
WORKDIR /
RUN mkdir /licenses
COPY tempo-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=tempo-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="0.14.1-1" \
version="0.14.1-1" \
com.redhat.openshift.versions=v4.12 \
name="rhosdt/tempo-operator-bundle" \
distribution-scope="public" \
description="Bundle for Tempo operator" \
io.k8s.description="Bundle for Tempo operator." \
# TODO check if this is correct
com.redhat.component="rhosdt" \
io.openshift.tags="tracing" \
io.k8s.display-name="Tempo Operator Bundle" \
url="https://github.com/grafana/tempo-operator" \
vendor="Red Hat, Inc." \
summary="Tempo operator bundle" \
maintainer="[email protected]"
# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/
COPY tempo-operator/bundle/openshift/tests/scorecard /tests/scorecard/
ARG USER_UID=1001
USER ${USER_UID}