Skip to content

Commit 8244d91

Browse files
authored
feat: add opentelemetry-collector image to pass certification (#101)
Signed-off-by: Dominik Rosiek <[email protected]>
1 parent 87f0c4b commit 8244d91

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

opentelemetry-collector/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
maintainer="[email protected]"
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"]

opentelemetry-collector/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/make -f
2+
3+
VERSION_PREFIX := ""
4+
5+
include ../Makefile.common

0 commit comments

Comments
 (0)