-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.obo
More file actions
48 lines (37 loc) · 1.81 KB
/
Dockerfile.obo
File metadata and controls
48 lines (37 loc) · 1.81 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
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as builder
WORKDIR /workspace
# Copy the Go Modules manifests
COPY observability-operator/ .
ENV GOFLAGS='-mod=mod'
ENV CGO_ENABLED=1
# Build
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -tags netgo,osusergo -o manager cmd/operator/main.go
FROM registry.redhat.io/openshift4/ose-cli-rhel9 AS origincli
RUN OC_PATH=$(which oc); \
echo ${OC_PATH}; \
cp ${OC_PATH} /tmp/oc
FROM registry.redhat.io/ubi9/ubi-minimal:latest@sha256:c7d44146f826037f6873d99da479299b889473492d3c1ab8af86f08af04ec8a0
WORKDIR /
# skip, only needed for must gather
# RUN microdnf install -y rsync tar xz
COPY --from=origincli /tmp/oc /usr/bin/oc
COPY --from=builder /workspace/manager .
COPY --from=builder --chmod=0755 /workspace/must-gather/collection-scripts/* /usr/bin/
COPY --from=builder /workspace/LICENSE /licenses/.
USER 65532:65532
ENTRYPOINT ["/manager"]
ARG VERSION=v1.4.0
LABEL com.redhat.component="coo-operator" \
name="cluster-observability-operator/cluster-observability-rhel9-operator" \
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/rhobs/observability-operator" \
summary="Cluster Observability Operator" \
io.openshift.tags="openshift,observability" \
io.k8s.display-name="Cluster Observability Operator" \
io.k8s.description="Cluster Observability Operator enables administrators to create standalone monitoring stacks that are independently configurable for use by different services and users." \
maintainer="Cluster Observability Operator Team <team-monitoring-incluster@redhat.com>" \
description="Cluster Observability Operator"