-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.07 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
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.
---
version: "3.7"
services:
opi-smbios-server:
build:
context: .
ports:
- "8082:8082"
- "50051:50051"
networks:
- opi
depends_on:
redis:
condition: service_healthy
command: /opi-smbios-bridge -grpc_port=50051 -http_port=8082
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"]
opi-gw-test:
image: curlimages/curl:8.5.0
networks:
- opi
depends_on:
opi-smbios-server:
condition: service_healthy
command: curl -qkL http://opi-smbios-server:8082/v1/inventory/1/inventory/2
opi-test:
image: namely/grpc-cli
networks:
- opi
depends_on:
opi-gw-test:
condition: service_completed_successfully
command: call --json_input --json_output opi-smbios-server:50051 GetInventory "{}"
networks:
opi: