This repository contains a minimal example to test headless rendering in ParaView.
Instructions:
-
Clone the repo and change directory into it
-
Download ParaView:
curl -o 'ParaView-5.13.1-osmesa-MPI-Linux-Python3.10-x86_64.tar.gz' 'https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.13&type=binary&os=Linux&downloadFile=ParaView-5.13.1-osmesa-MPI-Linux-Python3.10-x86_64.tar.gz'
- Build a docker image:
docker build -t paraview:test .
- Run the script:
docker run paraview:test /opt/ParaView-5.13.1-osmesa-MPI-Linux-Python3.10-x86_64/bin/pvbatch /scripts/test.py