//Note: this is community supplied - no guarantees!
//
// the docker how to is not overly helpful
https://docs.docker.com/develop/develop-images/baseimages/
// but they do reference a script
// The script can be used to make the centos image
// (there are also other distros also available in it… that’s on you to sort out)
https://github.com/moby/moby/blob/master/contrib/mkimage-yum.sh
//example usage - just does core package
mkimage.sh centos_core
// The following will provide information on how to
// modify that script to run with RHEL
https://www.ibm.com/developerworks/community/blogs/mhhaque/entry/How_to_create_RHEL7_Docker_Image_for_IBM_Power_System?lang=en
// NOTE the github script has to be edited!
// There is also a change that needs to match your repo hook
mkimage-yum.sh rhel_base
// with “cdrom” is the mounted ofed iso and “iso” is mounted linux distro iso
// once your image has been created, you can run it with
// (as an example)
docker run --privileged -i -t -v /mnt/cdrom:/mnt/cdrom -v /mnt/iso:/mnt/iso --net=host --device=/dev/infiniband/uverbs0 --device=/dev/infiniband/rdma_cm --gpus all redhat_base:7.6 bash
// From here, within your container, yum install “Infiniband Support” and try installing ofed.
// the --gpus all is really just if you have cuda loaded.
// Note the Host’s cuda has to be a later or equal version than that of the container’s cuda… but that’ off this topic… but be aware of it. The host has to have cuda loaded too!
// Once ofed is installed, follow its setup and diagnostics. should be able to manipulate the ports… ibdev2netdev… etc