-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
97 lines (88 loc) · 2.41 KB
/
docker-compose.yml
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
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.
# Copyright (C) 2022 Marvell International Ltd.
---
version: "3.7"
services:
opi-marvell-server:
build:
context: .
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
ports:
- "8082:8082"
- "50051:50051"
networks:
- opi
depends_on:
redis:
condition: service_healthy
jaeger:
condition: service_healthy
command: /opi-marvell-bridge -grpc_port=50051 -http_port=8082 -spdk_addr /var/tmp/spdk.sock -redis_addr=redis:6379
healthcheck:
test: grpcurl -plaintext localhost:50051 list || exit 1
redis:
image: redis:7.2.3-alpine3.18
networks:
- opi
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
jaeger:
image: jaegertracing/all-in-one:1.53.0
ports:
- "16686:16686"
- "4317:4317"
- "4318:4318"
environment:
- COLLECTOR_OTLP_ENABLED=true
networks:
- opi
healthcheck:
test:
[
"CMD-SHELL",
"nc -zv localhost 4317 && nc -zv localhost 4318 || exit 1"
]
interval: 6s
retries: 5
start_period: 20s
timeout: 10s
opi-gw-test:
image: curlimages/curl:8.5.0
networks:
- opi
depends_on:
opi-marvell-server:
condition: service_healthy
command: curl -qkL http://opi-marvell-server:8082/v1/inventory/1/inventory/2
opi-jaeger-test:
image: curlimages/curl:8.5.0
networks:
- opi
depends_on:
opi-marvell-server:
condition: service_healthy
opi-gw-test:
condition: service_completed_successfully # to get at least one operation registered in jaeger
command: sh -c 'curl -s "http://jaeger:16686/api/traces?service=opi-marvell-bridge&lookback=20m&prettyPrint=true&limit=10" | grep operationName'
opi-test:
image: docker.io/namely/grpc-cli
networks:
- opi
depends_on:
opi-gw-test:
condition: service_completed_successfully
opi-jaeger-test:
condition: service_completed_successfully
command: ls opi-marvell-server:50051 opi_api.storage.v1.FrontendNvmeService -l
opi-client:
image: docker.io/opiproject/godpu:main
networks:
- opi
depends_on:
opi-marvell-server:
condition: service_healthy
command: storage test --addr=opi-marvell-server:50051
networks:
opi: