Skip to content

Commit

Permalink
ci: enable ssl for mock redfish
Browse files Browse the repository at this point in the history
keys generated with:

```
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"
```

Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Feb 27, 2024
1 parent ec8ce40 commit fedb2df
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ version: "3.7"
services:

bmc:
image: docker.io/dmtf/redfish-mockup-server:1.2.4
image: 3df9cdd1a793
ports:
- 8000:8000
networks:
- opi
volumes:
- ./key.pem:/opt/key.pem
- ./cert.pem:/opt/cert.pem
command:
--ssl --key /opt/key.pem --cert /opt/cert.pem --port 8000
healthcheck:
test: curl --fail http://localhost:8000/redfish/
test: curl --insecure --fail https://localhost:8000/redfish/

opi-test:
image: docker.io/curlimages/curl:8.5.0
Expand All @@ -19,7 +26,7 @@ services:
condition: service_healthy
networks:
- opi
command: ["--fail", "-i", "-H", "Accept:application/yang-data+json", "http://bmc:8000/redfish/v1/Managers"]
command: ["--fail", "--insecure", "-i", "-H", "Accept:application/yang-data+json", "https://bmc:8000/redfish/v1/Managers"]

networks:
opi:

0 comments on commit fedb2df

Please sign in to comment.