A Dockerfile to build OpenRV with a Rocky 9 base, based on OpenRV. This setup is tested on Ubuntu 22.04 but should work just as well for other Linux distributions. Be sure that you have about 40GB of free space for the temporary build files. The total file size for rv is 468M and total compute time was about 33 minutes on a machine with 128 threads.
Run this command to create an insall of open RV. Note you must have docker installed. This will create a working copy of rv all tar'ed up and ready to go "OpenRV-Rocky9-x86_64-2.0.0.tar.gz".
git clone https://github.com/rubikstriangle/OpenRV-Rocky9-Docker
cd OpenRV-Rocky9-Docker
./build_openrv.sh
These instructions manually run the above script in a few steps. Follow the instructions on the official Docker documentation to install Docker on your machine: Install Docker
git clone https://github.com/rubikstriangle/OpenRV-Rocky9-Docker
cd OpenRV-Rocky9-Docker
Build the image from the OpenRV-Rocky9-Docker directory.
docker build --load -t openrv_rocky9 .
Run the below command to copy the OpenRV build from the docker to your current work directory.
docker run --name openrv_container -d openrv_rocky9 tail -f /dev/null
BUILD_NAME=$(docker exec openrv_container /bin/bash -c "source /home/rv/OpenRV/environment && echo \${BUILD_NAME}")
docker cp openrv_container:/home/rv/OpenRV/${BUILD_NAME}.tar.gz $PWD/
docker stop openrv_container
docker rm -f openrv_container
Use the tar command to decompress your OpenRV build and start up openRV:
tar -xvf ${BUILD_NAME}.tar.gz
cd ${BUILD_NAME}/bin
./rv
You should see your shiny new build of openRV!
If everything went well with your docker build you can remove the files to free disk space with the following commands: List all containers and images:
docker system df -v
docker ps -a
Delete the files associated with this build to free up drive space
docker stop openrv_container
docker rm openrv_container
docker rmi openrv_rocky9
This is my first time with docker, just getting used to it so I'm leaving a few notes for future self. If you need to trouble shoot your docker during the build you can get a shell like this:
docker run -it openrv_rocky9 /bin/bash