forked from ydb-platform/jaeger-ydb-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.31 KB
/
Dockerfile
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
34
35
36
37
38
39
40
ARG jaeger_version=1.25.0
ARG golang_version=1.17.5
ARG alpine_version=3.10
FROM jaegertracing/jaeger-collector:${jaeger_version} as base-collector
FROM jaegertracing/jaeger-query:${jaeger_version} as base-query
FROM golang:${golang_version} as builder
WORKDIR /build
COPY . .
RUN CGO_ENABLED=0 go build -ldflags='-w -s' -o /ydb-plugin .
RUN CGO_ENABLED=0 go build -ldflags='-w -s' -o /ydb-schema ./cmd/schema
FROM alpine:${alpine_version} AS watcher
ENV YDB_CA_FILE="/ydb-ca.pem"
RUN apk add --no-cache ca-certificates && \
wget "https://storage.yandexcloud.net/cloud-certs/CA.pem" -O /ydb-ca.pem
COPY --from=builder /ydb-schema /
ENTRYPOINT ["/ydb-schema"]
FROM alpine:${alpine_version} AS shared
ENV SPAN_STORAGE_TYPE="grpc-plugin"
ENV GRPC_STORAGE_PLUGIN_BINARY="/ydb-plugin"
ENV YDB_CA_FILE="/ydb-ca.pem"
RUN apk add --no-cache ca-certificates && \
wget "https://storage.yandexcloud.net/cloud-certs/CA.pem" -O /ydb-ca.pem
COPY --from=builder /ydb-plugin /
FROM shared AS collector
COPY --from=base-collector /go/bin/collector-linux /jaeger-collector
EXPOSE 14267
EXPOSE 14250
ENTRYPOINT ["/jaeger-collector"]
FROM shared AS query
COPY --from=base-query /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=base-query /go/bin/query-linux /jaeger-query
EXPOSE 16686
ENTRYPOINT ["/jaeger-query"]