-
Notifications
You must be signed in to change notification settings - Fork 117
/
Dockerfile_goreleaser
33 lines (31 loc) · 1 KB
/
Dockerfile_goreleaser
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.19
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk --no-cache add ca-certificates tzdata && \
echo "UTC" > /etc/timezone
ADD dist/clickhouse_sinker_linux_amd64_v1/clickhouse_sinker /usr/local/bin/clickhouse_sinker
ADD dist/nacos_publish_config_linux_amd64_v1/nacos_publish_config /usr/local/bin/nacos_publish_config
# clickhouse_sinker gets config from local file "/etc/clickhouse_sinker.hjson" by default.
# Customize behavior with following env variables:
# - V
# - LOG_LEVEL
# - LOG_PATHS
# - HTTP_PORT
# - HTTP_HOST
# - METRIC_PUSH_GATEWAY_ADDRS
# - PUSH_INTERVAL
# - LOCAL_CFG_FILE
# - NACOS_ADDR
# - NACOS_USERNAME
# - NACOS_PASSWORD
# - NACOS_NAMESPACE_ID
# - NACOS_GROUP
# - NACOS_DATAID
# - NACOS_SERVICE_NAME
# - CLICKHOUSE_USERNAME
# - CLICKHOUSE_PASSWORD
# - KAFKA_USERNAME
# - KAFKA_PASSWORD
# - KAFKA_GSSAPI_USERNAME
# - KAFKA_GSSAPI_PASSWORD
# See cmd/clickhouse_sinker/main.go for details.
ENTRYPOINT ["/usr/local/bin/clickhouse_sinker"]