From fedb2dfbae43ec009c51622d72d884184715e680 Mon Sep 17 00:00:00 2001 From: Boris Glimcher Date: Tue, 27 Feb 2024 19:02:41 +0200 Subject: [PATCH] ci: enable ssl for mock redfish 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 --- docker-compose.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1055ffe..12e7085 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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: