python-redfish/dmtf/mockup_1.1.0/run-redfish-simulator.sh
Uggla 6840cc878f Add a new mechanism to create a container running simulator 1.1.0
- Move previous simulator files into mockup_0.99.0a directory.
- Cleanup, adapt mockup_0.99.0a files.
- Add mockup_1.1.0 directory to host the new simulator files.

Note :
- First redfish-client tests against this new mockup work well.
- Of course, this is a first commit so it could be refined.

Change-Id: I88ac480e5b303922be5ec37e1a14a91f68d0bd92
2017-03-08 01:50:50 +00:00

15 lines
949 B
Bash
Executable File

#!/bin/bash
docker ps -a | grep -q "redfish-simulator_1.1.0"
if [ "$?" -eq 0 ]; then
docker rm -f "redfish-simulator_1.1.0"
fi
# The -p option needs to be after the run command. No warning is given if before but doesn't work
docker run -d -p 8001:8001 -p 8002:8002 -p 8003:8003 -p 8004:8004 -p 8005:8005 -p 8006:8006 --name "redfish-simulator_1.1.0" redfish-simulator_1.1.0:latest
echo "Launch your browser and load http://localhost:8001/ to access public-bladed profile"
echo "Launch your browser and load http://localhost:8002/ to access public-catfish profile"
echo "Launch your browser and load http://localhost:8003/ to access public-localstorage profile"
echo "Launch your browser and load http://localhost:8004/ to access public-rackmount1 profile"
echo "Launch your browser and load http://localhost:8005/ to access public-sasfabric profile"
echo "Launch your browser and load http://localhost:8006/ to access documentation and all files"