mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Added emulator for testing with docker/compose
This commit is contained in:
parent
e26bd175f1
commit
fcd2aae259
3 changed files with 91 additions and 0 deletions
12
emulator/setup.sh
Executable file
12
emulator/setup.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue