File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ARG UPSTREAM_VERSION
2
+
3
+ # # Use original image to copy files from
4
+ # # ref: https://github.com/SumoLogic/opentelemetry-collector-contrib/blob/5fd8754cbf0b9d88309cba2c9fee4a5342f3ed95/cmd/otelcontribcol/Dockerfile
5
+ FROM otel/opentelemetry-collector-contrib:${UPSTREAM_VERSION} as builder
6
+
7
+ # # Build RedHat compliant image
8
+ FROM registry.access.redhat.com/ubi9/ubi:9.4
9
+ ARG UPSTREAM_VERSION
10
+ ARG RELEASE
11
+
12
+ LABEL name="Opentelemetry-collector" \
13
+ vendor="Sumo Logic" \
14
+ version="${UPSTREAM_VERSION}" \
15
+ release="${RELEASE}" \
16
+ summary="UBI based opentelemetry-collector" \
17
+ description="The OpenTelemetry Collector offers a vendor-agnostic implementation on how to receive, process and export telemetry data." \
18
+
19
+
20
+ ADD https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector/v${UPSTREAM_VERSION}/LICENSE \
21
+ /licenses/LICENSE
22
+
23
+ ARG USER_UID=10001
24
+ USER ${USER_UID}
25
+
26
+ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
27
+ COPY --from=builder /otelcol-contrib /otelcontribcol
28
+ EXPOSE 55680 55679
29
+ ENTRYPOINT ["/otelcontribcol" ]
30
+ CMD ["--config" , "/etc/otel/config.yaml" ]
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/make -f
2
+
3
+ VERSION_PREFIX := ""
4
+
5
+ include ../Makefile.common
You can’t perform that action at this time.
0 commit comments