The log appender JAR was missing from the cameleer-runtime-base Docker image, causing agent log forwarding to silently fail with "No supported logging framework found, log forwarding disabled". This meant only container stdout logs (source=container) were captured — no application or agent logs reached ClickHouse. CI now downloads the appender JAR from the Maven registry alongside the agent JAR, and the Dockerfile COPYs it to /app/cameleer3-log-appender.jar where the server's Docker entrypoint expects it (-Dloader.path for Spring Boot, -cp for plain Java). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
798 B
Docker
20 lines
798 B
Docker
FROM eclipse-temurin:21-jre-alpine
|
|
WORKDIR /app
|
|
|
|
# Agent JAR and log appender JAR are copied during CI build from Gitea Maven registry
|
|
COPY agent.jar /app/agent.jar
|
|
COPY cameleer3-log-appender.jar /app/cameleer3-log-appender.jar
|
|
|
|
ENTRYPOINT exec java \
|
|
-Dcameleer.export.type=${CAMELEER_EXPORT_TYPE:-HTTP} \
|
|
-Dcameleer.export.endpoint=${CAMELEER_SERVER_URL} \
|
|
-Dcameleer.agent.name=${HOSTNAME} \
|
|
-Dcameleer.agent.application=${CAMELEER_APPLICATION_ID:-default} \
|
|
-Dcameleer.agent.environment=${CAMELEER_ENVIRONMENT_ID:-default} \
|
|
-Dcameleer.routeControl.enabled=${CAMELEER_ROUTE_CONTROL_ENABLED:-false} \
|
|
-Dcameleer.replay.enabled=${CAMELEER_REPLAY_ENABLED:-false} \
|
|
-Dcameleer.health.enabled=true \
|
|
-Dcameleer.health.port=9464 \
|
|
-javaagent:/app/agent.jar \
|
|
-jar /app/app.jar
|