For instructions on using the full Paraview Web directly from a Singularity container, see this post on AskCyberinfrastructre. Continue reading below for using the Paraview Visualizer via a Docker container, or Singularity container instance.
$ sudo singularity build paraview.simg Singularity # no nvidia $ sudo singularity build paraview.simg Singularity.nv # nvidia
If you need it, make a data folder to bind to on the host:
$ mkdir -p /tmp/data
Start the container instance, here we are naming it "visualizer"
$ singularity instance.start --bind /tmp/data:/data paraview.simg visualizer
You should now see the paraview interface running on 127.0.0.1:8080
The mapping to
/data is where local web applications will load files from.
Also note that you must stop local web servers, including any Docker applications running on that port.
Huge thanks to:
If you need to debug interactively:
$ singularity shell instance://visualizer
And to stop the container, you also need sudo
$ singularity instance.stop instance://visualizer
If you are using Singularity 3.0 and up the instance group is now changed to "instance stop" and "instance start"