-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathDockerfile
112 lines (76 loc) · 1.77 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright (c) 2024 The Jaeger Authors.
# SPDX-License-Identifier: Apache-2.0
ARG base_image
ARG debug_image
# ------------- Begin PROD image -------------
FROM $base_image AS release
ARG TARGETARCH
ARG USER_UID=10001
# Agent zipkin.thrift compact
EXPOSE 5775/udp
# Agent jaeger.thrift compact
EXPOSE 6831/udp
# Agent jaeger.thrift binary
EXPOSE 6832/udp
# Sampling config HTTP
EXPOSE 5778
# Sampling config gRPC
EXPOSE 5779
# 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
# Health Check gRPC
EXPOSE 13132
# Health Check HTTP
EXPOSE 13133
COPY jaeger-linux-$TARGETARCH /cmd/jaeger/jaeger-linux
COPY sampling-strategies.json /cmd/jaeger/sampling-strategies.json
VOLUME ["/tmp"]
ENTRYPOINT ["/cmd/jaeger/jaeger-linux"]
USER ${USER_UID}
# ------------- Begin DEBUG image -------------
FROM $debug_image AS debug
ARG TARGETARCH=amd64
ARG USER_UID=10001
# Agent zipkin.thrift compact
EXPOSE 5775/udp
# Agent jaeger.thrift compact
EXPOSE 6831/udp
# Agent jaeger.thrift binary
EXPOSE 6832/udp
# Sampling config HTTP
EXPOSE 5778
# Sampling config gRPC
EXPOSE 5779
# 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
# Health Check gRPC
EXPOSE 13132
# Health Check HTTP
EXPOSE 13133
COPY jaeger-debug-linux-$TARGETARCH /cmd/jaeger/jaeger-linux
COPY sampling-strategies.json /cmd/jaeger/sampling-strategies.json
VOLUME ["/tmp"]
ENTRYPOINT ["/go/bin/dlv", "exec", "/cmd/jaeger/jaeger-linux", "--headless", "--listen=:12345", "--api-version=2", "--accept-multiclient", "--log", "--"]
USER ${USER_UID}