Sign inSign up

shihta/redfish-recordings

By shihta

•Updated about 7 years ago

Image
0

240

shihta/redfish-recordings repository overview

⁠Redfish service recordings

This repository contains selection of Redfish recordings that can be served by the Redfish mock servers.

⁠Quickstart

In order to make playing with those recordings as painless as possible, repository already contains a Gemfile that can be used to install Redfish tools gem⁠ that contain mock server. Running

$ bundle
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...
Using bundler 1.16.1
...

will install Redfish tools gem with dependecies and provide redfish serve command. To start serving one of the recordings (lenovo-sr650 in this example), we must run

$ bundle exec redfish serve lenovo-sr650
[2018-05-30 16:37:01] INFO  WEBrick 1.3.1
[2018-05-30 16:37:01] INFO  ruby 2.4.3 (2017-12-14) [x86_64-linux]
[2018-05-30 16:37:01] INFO  RedfishTools::Server#start: pid=30028 port=8000

If we now visit localhost:8000/redfish/v1, a healthy amount of JSON data will fill our browser.

To terminate the server, just press CTRL+c.

And this is basically all there is to it.

⁠Docker

The Dockerfile is used to build a ready-to-use image. It contains all available recordings. You just need to choose one and then launch it. If you don't want to build yourself image, you could directly pull shihta/redfish-recordings.

⁠Environment variables
  • BIND - The IP you want to bind, default is 0.0.0.0
  • PORT - The port you want to expose, default is 8000
  • USER - Username for authentication, default is admin
  • PASS - Password for authentication, default is passadmin
  • SSL - Set it to TRUE for HTTPS, otherwise it will provide HTTP service. Default is TRUE
  • RECORDING - Which recording will be serve, default is lenovo-sr650
⁠Integrate with yourself recording

It's easy to integrate with your local recording. You just need to put your recording folder on /app and then change RECORDING to the folder name. e.g.

docker run -v $PWD/newtype:/app/newtype -e RECORDING=newtype shihta/redfish-recordings

Tag summary

Content type

Image

Digest

Size

38.1 MB

Last updated

about 7 years ago

docker pull shihta/redfish-recordings