-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathDockerfile
72 lines (50 loc) · 1.34 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright (c) 2024 The Jaeger Authors.
# SPDX-License-Identifier: Apache-2.0
ARG base_image
ARG debug_image
FROM $base_image AS release
ARG TARGETARCH
ARG USER_UID=10001
# Collector OTLP gRPC
EXPOSE 4317
# Collector OTLP HTTP
EXPOSE 4318
# Collector HTTP
EXPOSE 14268
# Collector gRPC
EXPOSE 14250
# Collector Zipkin
EXPOSE 9411
# Web HTTP
EXPOSE 16686
# Default configuration file for setting sampling strategies
ENV SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json
COPY all-in-one-linux-$TARGETARCH /go/bin/all-in-one-linux
COPY sampling_strategies.json /etc/jaeger/
VOLUME ["/tmp"]
ENTRYPOINT ["/go/bin/all-in-one-linux"]
USER ${USER_UID}
FROM $debug_image AS debug
ARG TARGETARCH=amd64
ARG USER_UID=10001
# Collector OTLP gRPC
EXPOSE 4317
# Collector OTLP HTTP
EXPOSE 4318
# Collector HTTP
EXPOSE 14268
# Collector gRPC
EXPOSE 14250
# Collector Zipkin
EXPOSE 9411
# Web HTTP
EXPOSE 16686
# Delve
EXPOSE 12345
# Default configuration file for setting sampling strategies
ENV SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json
COPY all-in-one-debug-linux-$TARGETARCH /go/bin/all-in-one-linux
COPY sampling_strategies.json /etc/jaeger/
VOLUME ["/tmp"]
ENTRYPOINT ["/go/bin/dlv", "exec", "/go/bin/all-in-one-linux", "--headless", "--listen=:12345", "--api-version=2", "--accept-multiclient", "--log", "--"]
USER ${USER_UID}