Skip to content

Running containerized applications

In this tutorial you will learn

  • How pre-installed containerized applications are used on CSC supercomputers

💬 In this tutorial we will get familiar with the basic usage of containerized software.

💭 Some software on CSC supercomputers has been installed as containers.

  • Usually, we try to make the containers as transparent as possible using wrapper scripts. This way, there should be little to no change in usage from the users' perspective.

💭 Sometimes, however, this is impractical and there might be slight differences compared to the standard usage as described in the documentation.

  • Typically, this will also be the case for software you containerize yourself. You can, however, use Tykky to create wrapper scripts to facilitate the use of containers.

‼ Please see the software documentation in Docs CSC for details and other considerations.

  • To run these exercises on Roihu, use sinteractive or open a compute node shell in the Roihu web interface:

    sinteractive --account <project>  # replace <project> with your CSC project, e.g. project_2001234
    

Example: A "hidden" installation

  1. An example of a container-based installation that has been "hidden" behind a wrapper script is R. Load the r-env module and check the contents of the Rscript command:

    module load r-env
    cat /appl/soft/manual/aida/x86_64/r-env/wrappers/452/bin/Rscript
    

    Observe that it is not the "real" Rscript command, but a wrapper script using singularity exec.

    ‼ This is actually using Apptainer under the hood, as /usr/bin/singularity is a symlink to /usr/bin/apptainer.

  2. Now, try running Rscript:

    Rscript --version
    
  3. As you can see, Rscript works as expected, and in most cases you don't need to care about the fact that it is installed as a container.

    💭 You can find more details about using R in the Docs CSC page of the r-env module.

    💡 If you're unable to open an interactive session due to high load during the course, you can try this example in a login shell instead:

    module load cutadapt
    cutadapt -h