-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.txt
30 lines (23 loc) · 1.26 KB
/
script.txt
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
docker run --name nginxapp1 \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app1/conf.d,target=/etc/nginx/conf.d,readonly \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app1,target=/usr/share/nginx/html,readonly \
--volume ./nginx.conf:/etc/nginx/nginx.conf \
-p 8081:8081 \
-d nginxapp1
docker run --name nginxapp2 \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app2/conf.d,target=/etc/nginx/conf.d,readonly \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app2,target=/usr/share/nginx/html,readonly \
--volume ./nginx.conf:/etc/nginx/nginx.conf \
-p 8082:8081 \
-d nginxapp1
docker run --name nginxapp2 \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app2,target=/usr/share/nginx/html,readonly \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/app2,target=/etc/nginx/conf.d,readonly \
-p 8082:8081 \
-d nginx
docker run --name nginx-otel --network="host" \
--mount type=bind,source=/Users/jaehong.kim/nginx-otel/otel/conf.d,target=/etc/nginx/conf.d,readonly \
-p 4000
-d nginxplus
docker build --no-cache --secret id=nginx-key,src=nginx-repo.key --secret id=nginx-crt,src=nginx-repo.crt -t nginxplus .
curl -X POST -d '{"otel.span.attr":"nginx-span-test"}' http://localhost/api/6/http/keyvals/demo