mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-19 19:17:02 -07:00
12 lines
469 B
Bash
Executable file
12 lines
469 B
Bash
Executable file
#/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
|