Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aboguszewski-sumo committed Feb 7, 2024
1 parent f0952e4 commit 5274935
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dockerfile_ubi
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"]

0 comments on commit 5274935

Please sign in to comment.