Skip to content

Instantly share code, notes, and snippets.

@gramidt
Last active December 2, 2021 18:56
Show Gist options
  • Save gramidt/d54b104af1d06649b4d77f8d5504fac8 to your computer and use it in GitHub Desktop.
Save gramidt/d54b104af1d06649b4d77f8d5504fac8 to your computer and use it in GitHub Desktop.
OpenTelemetry Collector ARM Dockerfile
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