From d67dcc2991e4287fdeef7b39abf202d1711fc72d Mon Sep 17 00:00:00 2001 From: YenchangChan Date: Thu, 4 Jan 2024 20:41:16 +0800 Subject: [PATCH] fix: systest issue --- Dockerfile | 8 ++++---- go.metrictest.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c68f9a73..a3d7f20b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ RUN make build FROM alpine:3.19 RUN apk --no-cache add ca-certificates tzdata && \ echo "UTC" > /etc/timezone -COPY --from=builder /app/clickhouse_sinker /usr/local/bin/clickhouse_sinker -COPY --from=builder /app/nacos_publish_config /usr/local/bin/nacos_publish_config -COPY --from=builder /app/kafka_gen_log /usr/local/bin/kafka_gen_log -COPY --from=builder /app/kafka_gen_metric /usr/local/bin/kafka_gen_metric +COPY --from=builder /app/bin/clickhouse_sinker /usr/local/bin/clickhouse_sinker +COPY --from=builder /app/bin/nacos_publish_config /usr/local/bin/nacos_publish_config +COPY --from=builder /app/bin/kafka_gen_log /usr/local/bin/kafka_gen_log +COPY --from=builder /app/bin/kafka_gen_metric /usr/local/bin/kafka_gen_metric # clickhouse_sinker gets config from local file "/etc/clickhouse_sinker.hjson" by default. # Customize behavior with following env variables: diff --git a/go.metrictest.sh b/go.metrictest.sh index e87045c0..558ee160 100755 --- a/go.metrictest.sh +++ b/go.metrictest.sh @@ -39,7 +39,7 @@ sudo docker exec kafka kafka-topics --bootstrap-server localhost:9093 --topic te sudo docker exec kafka sh /tmp/send.sh echo "start clickhouse_sinker to consume" -timeout 30 ./clickhouse_sinker --local-cfg-file docker/test_prom_metric.hjson +timeout 30 ./bin/clickhouse_sinker --local-cfg-file docker/test_prom_metric.hjson schema=`curl "localhost:8123" -d 'DESC test_prom_metric' 2>/dev/null | sort | tr -d '\t' | tr -d ' '| tr '\n' ','` echo "Got test_prom_metric schema => $schema"