Added emulator for testing with docker/compose

This commit is contained in:
David Allen 2024-07-16 15:53:57 -06:00
parent e26bd175f1
commit fcd2aae259
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 91 additions and 0 deletions

12
emulator/setup.sh Executable file
View file

@ -0,0 +1,12 @@
#/bin/sh
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# clone the CSM redfish emulator if needed
if [ ! -d ${script_dir}/rf-emulator ]; then
git clone https://github.com/Cray-HPE/csm-redfish-interface-emulator ${script_dir}/rf-emulator
fi
# build docker image and run with docker compose
docker build -t openchami-rie:latest -f ${script_dir}/Dockerfile ${script_dir}/rf-emulator
docker compose -f ${script_dir}/rf-emulator.yml up