-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
48 lines (43 loc) · 1.42 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
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2024 Dell Inc, or its subsidiaries.
---
version: "3.7"
services:
bmc:
image: docker.io/dmtf/redfish-mockup-server:1.2.5
ports:
- 8000:443
networks:
- opi
entrypoint: ["/bin/bash"]
command: |
-x -c '
openssl req -x509 -nodes -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 365 \
-subj "/C=GB/ST=London/L=London/O=Alros/OU=IT Department/CN=localhost" && \
python /usr/src/app/redfishMockupServer.py -H 0.0.0.0 --ssl --key ./key.pem --cert ./cert.pem --port 443'
healthcheck:
test: curl --insecure --fail https://localhost:443/redfish/
opi-test:
image: docker.io/curlimages/curl:8.5.0
depends_on:
bmc:
condition: service_healthy
ansible-test:
condition: service_completed_successfully
networks:
- opi
command: ["--fail", "--insecure", "-i", "-H", "Accept:application/yang-data+json", "https://bmc:443/redfish/v1/Managers"]
ansible-test:
image: ghcr.io/opiproject/ansible-opi-dpu:main
depends_on:
bmc:
condition: service_healthy
networks:
- opi
volumes:
- ./:/opt/
working_dir: /opt/roles
command: ["all", "--module-name", "include_role", "--args", "name=get_bmc_facts", "-vvv", "-i", "bmc,",
"-e", "dpu_bmc_username='root'", "-e", "dpu_bmc_password='123456'"]
networks:
opi: