6840cc878f
- 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
10 lines
393 B
Bash
Executable File
10 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
docker ps -a | grep -q "redfish-simulator_0.99.0a"
|
|
if [ "$?" -eq 0 ]; then
|
|
docker rm -f "redfish-simulator_0.99.0a"
|
|
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 8000:80 --name "redfish-simulator_0.99.0a" redfish-simulator_0.99.0a:latest
|
|
echo "Launch your browser and load http://localhost:8000/redfish/v1"
|