Eric MacDonald 8959d8258d Utility to install a server via Redfish
This update introduces the implementation for a docker container named
'rvmc', standing for Redfish Virtual Media Controller, which executes a
python file that imports the open source redfish-python-library used to
establish a secure Redfish communication session with a Redfish
supported Board Management Controller to insert a URL based ISO image
into its Virtual Media CD/DVD device so that on that server's next
reboot will boot and install that image.

This container supports single and multi target configuration files with
IPV4 and IPV6 BMC addressing.

Change-Id: I4d555046800c8d193686b9ef3a2b1e61c13d4ff8
Depends-On: https://review.opendev.org/#/c/700434/
Depends-On: https://review.opendev.org/#/c/700080/
Story: 2006980
Task: 37775
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-12-31 15:34:54 +00:00

16 lines
643 B
Docker

ARG BASE
FROM ${BASE}
MAINTAINER eric.macdonald@windriver.com
RUN yum install -y iproute python3 pip3 datetime time
RUN pip3 install pyyaml redfish
COPY rvmc.py /usr/local/bin
ENV debug=0
ENV target=None
ENTRYPOINT /usr/local/bin/rvmc.py --target $target --debug $debug
# Execution Examples:
#
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1 rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1,dcloud2 rvmc:latest
# sudo docker run -v /etc/rvmc.yaml:/etc/rvmc.yaml --env target=dcloud1,dcloud2 --env debug=1 rvmc:latest