-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.cluster-health-analyzer
More file actions
42 lines (35 loc) · 1.7 KB
/
Dockerfile.cluster-health-analyzer
File metadata and controls
42 lines (35 loc) · 1.7 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
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as builder
ARG TARGETARCH
WORKDIR /workspace
COPY cluster-health-analyzer/go.mod go.mod
COPY cluster-health-analyzer/go.sum go.sum
RUN go mod download
COPY cluster-health-analyzer/cmd cmd
COPY cluster-health-analyzer/pkg pkg
COPY cluster-health-analyzer/main.go main.go
ENV GOOS=${TARGETOS:-linux}
ENV GOARCH=${TARGETARCH}
ENV CGO_ENABLED=1
ENV GOFLAGS=-mod=readonly
ENV GOEXPERIMENT=strictfipsruntime
RUN go build -tags strictfipsruntime -o /bin/cluster-health-analyzer
FROM registry.redhat.io/ubi9/ubi-minimal:latest@sha256:c7d44146f826037f6873d99da479299b889473492d3c1ab8af86f08af04ec8a0
WORKDIR /
COPY --from=builder /bin/cluster-health-analyzer /bin/cluster-health-analyzer
USER 65532:65532
ENTRYPOINT ["/bin/cluster-health-analyzer"]
ARG VERSION=v1.0.0
LABEL com.redhat.component="coo-cluster-health-analyzer" \
name="cluster-observability-operator/cluster-health-analyzer-rhel9" \
cpe="cpe:/a:redhat:cluster_observability_operator:1.4::el9" \
version="${VERSION}" \
release="${VERSION}" \
vendor="Red Hat, Inc." \
distribution-scope="public" \
url="https://github.com/openshift/cluster-health-analyzer" \
summary="OpenShift Cluster Health Analyzer" \
io.openshift.tags="openshift,observability,metrics,alerts,incidents" \
io.k8s.display-name="COO Cluster Health Analyzer" \
io.k8s.description="The Cluster Health Analyzer analyzes alerts and health signals, grouping related ones" \
maintainer="Observability Intelligence Analytics Team <obsint-analytics@redhat.com>" \
description="The Cluster Health Analyzer analyzes alerts and health signals, grouping related ones"