-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker.ps1
46 lines (41 loc) · 1.07 KB
/
docker.ps1
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
$version = 1.0
$network = 'chord_network'
# Create network
docker network create ${network}
# Run Jaeger
docker run -d --name jaeger `
--net ${network} `
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 `
-p 5775:5775/udp `
-p 6831:6831/udp `
-p 6832:6832/udp `
-p 5778:5778 `
-p 16686:16686 `
-p 14268:14268 `
-p 14250:14250 `
-p 9411:9411 `
jaegertracing/all-in-one:latest
# Run bootstrap server
docker run --name bootstrap --net ${network} -p 55555:55555/udp bootstrap-server:1.0
# Run init container
$hostIp = 'localhost'
$hostPort = 7071
$dns = 'localhost:7071'
$bsIp = 'bootstrap' # Bootstrap IP
$bsPort = 55555 # Bootstrap port
$jaegerEndpoint = 'http://jaeger:14268/api/traces'
$username = 'jellyfish'
$M = 5
$ringSize = 32
docker run `
--name ${username} `
--net ${network} `
-p 7071:7071 `
-e OTEL_EXPORTER_JAEGER_ENDPOINT=${jaegerEndpoint} `
yousuf64/chord-kv:${version} `
--addr=${hostIp}:${hostPort} `
--dns=${dns} `
--bootstrap=${bsIp}:${bsPort} `
--username=${username} `
--M=${M} `
--ringSize=${ringSize}