Last active
December 2, 2021 18:56
-
-
Save gramidt/d54b104af1d06649b4d77f8d5504fac8 to your computer and use it in GitHub Desktop.
OpenTelemetry Collector ARM Dockerfile
This file contains hidden or 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
ARG OTEL_CONTRIB_COLLECTOR_VERSION=v0.23.0 | |
FROM alpine:3.13 as certs | |
RUN apk --update add ca-certificates | |
FROM alpine:3.13 AS otelcol | |
ARG OTEL_CONTRIB_COLLECTOR_VERSION | |
RUN wget -O /otelcontribcol "https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/download/${OTEL_CONTRIB_COLLECTOR_VERSION}/otelcontribcol_linux_arm64" | |
RUN chmod 755 /otelcontribcol | |
FROM scratch | |
ARG USER_UID=10001 | |
USER ${USER_UID} | |
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | |
COPY --from=otelcol /otelcontribcol / | |
ENTRYPOINT ["/otelcontribcol"] | |
# Mount your config.yaml to /etc/otel/config.yaml | |
CMD ["--config", "/etc/otel/config.yaml"] | |
EXPOSE 4317 55678 55679 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment