Skip to content

Commit

Permalink
fix: systest issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Jan 4, 2024
1 parent afe8bd4 commit d67dcc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion go.metrictest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d67dcc2

Please sign in to comment.