fix: copy otel-collector schema directory to AIO image (#1700)

This commit is contained in:
Warren Lee 2026-02-04 21:27:23 +01:00 committed by GitHub
parent 6cfa40a0f7
commit 3dae0e012f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/otel-collector": patch
---
fix: copy otel-collector schema directory to AIO image

View file

@ -16,6 +16,7 @@ ARG OTEL_COLLECTOR_OPAMPSUPERVISOR_VERSION=0.128.0
# == Otel Collector Image ==
FROM otel/opentelemetry-collector-contrib:${OTEL_COLLECTOR_VERSION} AS otel_collector_base
FROM otel/opentelemetry-collector-opampsupervisor:${OTEL_COLLECTOR_OPAMPSUPERVISOR_VERSION} AS otel_collector_opampsupervisor_base
FROM kukymbr/goose-docker@sha256:0cd025636df126e7f66472861ca4db3683bc649be46cd1f6ef1a316209058e23 AS goose
FROM node:${NODE_VERSION}-alpine AS node_base
@ -119,6 +120,7 @@ COPY --from=hyperdx ./clickhouseConfig.xml /etc/clickhouse-server/config.xml
# Set up Otel Collector
COPY --from=otel-collector ./config.yaml /etc/otelcol-contrib/config.yaml
COPY --from=otel-collector ./supervisor_docker.yaml.tmpl /etc/otel/supervisor.yaml.tmpl
COPY --from=otel-collector ./schema /etc/otel/schema
# Copy otel-collector entrypoint script
COPY --from=otel-collector --chmod=755 ./entrypoint.sh /otel-entrypoint.sh
@ -126,6 +128,9 @@ COPY --from=otel-collector --chmod=755 ./entrypoint.sh /otel-entrypoint.sh
# Copy gomplate binary from the gomplate image
COPY --from=gomplate /bin/gomplate /usr/local/bin/gomplate
# Copy goose binary from the goose image
COPY --from=goose /bin/goose /usr/local/bin/goose
# Install MongoDB and other dependencies (consolidated into a single RUN command)
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories && \
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories && \