mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
- Go module: github.com/SigNoz/signoz-otel-collector → github.com/hanzoai/otel-collector - All signoz-prefixed packages → o11y-prefixed - Docker: signoz/* → ghcr.io/hanzoai/otel-collector - ClickHouse exporter → Hanzo Datastore - Env vars: SIGNOZ_* → HANZO_* - Directory renames for all processor/receiver/exporter packages
26 lines
753 B
Docker
26 lines
753 B
Docker
# use a minimal debian image
|
|
FROM debian:bookworm-slim
|
|
|
|
# add ca-certificates in case you need them
|
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
|
|
# define arguments and default values
|
|
ARG TARGETOS TARGETARCH
|
|
ARG USER_UID=10001
|
|
|
|
# create a non-root user for running the collector
|
|
USER ${USER_UID}
|
|
|
|
# copy the binaries from the multi-stage build
|
|
COPY .build/${TARGETOS}-${TARGETARCH}/hanzo-otel-collector /hanzo-otel-collector
|
|
|
|
# copy the config file
|
|
COPY conf/default.yaml /etc/otel/config.yaml
|
|
|
|
# expose OTLP ports for the collector
|
|
EXPOSE 4317 4318
|
|
|
|
# run the binary as the entrypoint and pass the default config file as a flag
|
|
ENTRYPOINT [ "/hanzo-otel-collector" ]
|
|
CMD ["--config", "/etc/otel/config.yaml"]
|