Download Spectra (docker, singularity)

Spectra is available as a docker image. To download the image, run it and start Spectra inside:

$ docker run -ti -u hasylab -w /home/hasylab -e USER=hasylab -e QT_X11_NO_MITSHM=1 \
   --name ctemp -e DISPLAY=:0 -v /<DirectoryOnYourPC>:/home/hasylab/work \
   -v /tmp/.X11-unix:/tmp/.X11-unix tkracht56/ispectra /bin/bash

  InsideDocker$ spectra

The <DirectoryOnYourPC> will be accessible from inside docker via /home/hasylab/work.

To enable the X11 display, you may have to issue 'host +' on the PC connected to your monitor. Section 3.3 shows some useful docker commands.

Running the tkracht56/ispectra as a singularity image avoids any ownership conflicts of files created from inside the container in your directory. The docker image tkracht56/ispectra is converted to a singularity image by:

$ docker run -v /var/run/docker.sock:/var/run/docker.sock \
  -v /<DirectoryToStoreTheSingularityImage>:/output --privileged -t --rm \
  singularityware/docker2singularity tkracht56/hasylab

creates: 
  tkracht56_hasylab-XXXX.img

To run a bash and Spectra in the singularity image:

$ singularity shell -s /bin/bash tkracht56_hasylab-XXXX.img

  InsideSingularity$ spectra

Running singularity it is sometimes hard to tell whether one is inside the container or not. This command tells you where you are:

  $ set | grep SING