Docker image for the HPE python-hpOneView SDK on Debian
oneview-python-debian contains no Python code. Everything must be passed in.
Set up a volume or use a bind mount containing the Python code that uses python-hpOneView. This can be mounted into the container with -v or --mount
Assume a named volume pythoncode. This can be run with the following commands:
docker run -it --rm \
-v pythoncode:/pythoncode \
hewlettpackardenterprise/oneview-python-debian \You will be in a bash shell ready to run your Python code:
cd /pythoncode
python my-python-script.pyExit the shell and the container will be destroyed but the Python code in the Docker volume will remain.
The HPE OneView Python SDK in a container sample has a how to guide and a Python sample you can use to try out the oneview-python-debian container.