-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0952e4
commit 5274935
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Use original image to copy files from | ||
FROM public.ecr.aws/sumologic/sumologic-otel-collector:${BUILD_TAG} as builder | ||
|
||
## Build RedHat compliant image | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 | ||
|
||
ENV SUMMARY="UBI based sumologic-otel-collector" \ | ||
DESCRIPTION="Sumo Logic Distribution for OpenTelemetry Collector is a Sumo Logic-supported distribution of the OpenTelemetry Collector. It is a single agent to send logs, metrics and traces to Sumo Logic." | ||
|
||
LABEL name="sumologic-otel-collector" \ | ||
vendor="Sumo Logic" \ | ||
version="$BUILD_TAG" \ | ||
release="4" \ | ||
summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
maintainer="[email protected]" | ||
|
||
ADD https://raw.githubusercontent.com/SumoLogic/sumologic-otel-collector/v${BUILD_TAG}/LICENSE \ | ||
/licenses/LICENSE | ||
|
||
ARG USER_UID=10001 | ||
USER ${USER_UID} | ||
ENV HOME /etc/otel/ | ||
|
||
# copy journalctl and it's dependencies as base structure | ||
COPY --from=builder / / | ||
COPY --from=builder --chown=${USER_UID}:${USER_UID} /etc/otel/ /etc/otel/ | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=builder /otelcol-sumo /otelcol-sumo | ||
ENTRYPOINT ["/otelcol-sumo"] | ||
CMD ["--config", "/etc/otel/config.yaml"] |