
- Uses tortilla lib to wrap the REST API (dep) - Uses python requests to manage login/logout (dep) - Provides 2 functional working examples with Redfish simulator and ProLiant server or Moonshot Server - Remove OpenStack deps as this code has to be usable outside of OpenStack - Provides a configuration file to handle credentials and connection URL - Provides a mapping class to handle multiple versions of Redfish (in this version, 0.95.0 for ProLiant and 1.0.0 for mockup) - Provides a first action reset_server to ... reset system The action is commented into simple-proliant.py to not do unexpected reset. - Provides a first retrieving function get_bios_version to get the BIOS version of a system. - Add basic logging capability - Clean up to meet pep8 and doc strings (in progress).
14 lines
594 B
Docker
14 lines
594 B
Docker
FROM ubuntu:15.04
|
|
MAINTAINER bruno.cornec@hp.com
|
|
ENV DEBIAN_FRONTEND noninterative
|
|
ENV http_proxy http://web-proxy.fra.hp.com:8080
|
|
ENV https_proxy http://web-proxy.fra.hp.com:8080
|
|
# Install deps for Redfish mockup
|
|
RUN apt-get update
|
|
RUN apt-get -y install python-mock python-pip git openssh-client libpython2.7-dev python-oslotest
|
|
RUN apt-get -y ansible
|
|
RUN useradd -m bruno
|
|
RUN chown -R bruno /usr/local
|
|
RUN su - bruno -c "git clone https://github.com/bcornec/python-redfish.git ; pip install -r python-redfish/requirements.txt ; cd python-redfish ; python setup.py install -O1"
|
|
CMD /bin/bash
|