Merge pull request #8 from bcornec/dmtf
DMTF related update: add docker container, update refs from 0.91 to 0.96.0a
This commit is contained in:
commit
f3bf31d83f
@ -3,13 +3,13 @@ python-redfish
|
||||
|
||||
This repository will be used to house the Redfish python library, a reference
|
||||
implementation to enable Python developers to communicate with the Redfish API
|
||||
(http://www.redfishspecification.org/).
|
||||
(http://www.dmtf.org/standards/redfish).
|
||||
|
||||
NOTE::
|
||||
|
||||
DRAFT - WORK IN PROGRESS
|
||||
|
||||
The current Redfish specification revsion is 0.91 - anything and everything
|
||||
The current Redfish specification revision is 0.96.0a - anything and everything
|
||||
in this library is subject to change until the DMTF ratifies the Redfish API
|
||||
standard v1.0.
|
||||
|
||||
|
BIN
dmtf/DSP0266_0.96.0a.pdf
Normal file
BIN
dmtf/DSP0266_0.96.0a.pdf
Normal file
Binary file not shown.
BIN
dmtf/DSP2043_0.96.0a.zip
Normal file
BIN
dmtf/DSP2043_0.96.0a.zip
Normal file
Binary file not shown.
BIN
dmtf/DSP8010_0.96.0a.zip
Normal file
BIN
dmtf/DSP8010_0.96.0a.zip
Normal file
Binary file not shown.
13
dmtf/Dockerfile
Normal file
13
dmtf/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
# Invoke with docker run -p 8000:80 <dockerimageid>
|
||||
# Then use by browsing http://localhost:8000
|
||||
FROM ubuntu:15.04
|
||||
MAINTAINER bruno.cornec@hp.com
|
||||
ENV DEBIAN_FRONTEND noninterative
|
||||
# Install deps for Redfish mockup
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install apache2 unzip sed
|
||||
EXPOSE 80
|
||||
COPY redfish-setup.sh /tmp/redfish-setup.sh
|
||||
COPY DSP2043_0.96.0a.zip /tmp/DSP2043_0.96.0a.zip
|
||||
RUN chmod 755 /tmp/redfish-setup.sh
|
||||
CMD /tmp/redfish-setup.sh
|
5
dmtf/buildImage.sh
Executable file
5
dmtf/buildImage.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Build and tag images
|
||||
docker build -t "redfish-simulator" .
|
||||
docker tag redfish-simulator:latest localhost:5000/redfish-simulator
|
26
dmtf/redfish-setup.sh
Normal file
26
dmtf/redfish-setup.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
function start_apache {
|
||||
echo "Launching apache2 in foreground with /usr/sbin/apache2ctl -DFOREGROUND -k start"
|
||||
/usr/sbin/apache2ctl -DFOREGROUND -k start
|
||||
}
|
||||
|
||||
function stop_apache {
|
||||
echo "Stopping apache2"
|
||||
/usr/sbin/apache2ctl stop
|
||||
}
|
||||
|
||||
# Trap to have a clean exit
|
||||
trap stop_apache HUP INT QUIT KILL TERM
|
||||
|
||||
|
||||
# Main
|
||||
cd /var/www/html
|
||||
unzip -q -o /tmp/DSP2043_0.96.0a.zip
|
||||
mkdir -p redfish
|
||||
cd redfish
|
||||
ln -sf .. v1
|
||||
cd ..
|
||||
ip a
|
||||
#sed -i -e 's/Listen 80/Listen 8000/' /etc/apache2/ports.conf
|
||||
start_apache
|
4
dmtf/run-redfish-simulator.sh
Executable file
4
dmtf/run-redfish-simulator.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Th -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" localhost:5000/redfish-simulator
|
Loading…
Reference in New Issue
Block a user