//Note: this is community supplied - no guarantees!
// the docker how to is not overly helpful
// 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)
//example usage - just does core package
// The following will provide information on how to
// modify that script to run with RHEL
// NOTE the github script has to be edited!
// There is also a change that needs to match your repo hook
// 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