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
sinteractiveor open a compute node shell in the Roihu web interface:
Example: A "hidden" installation¶
-
An example of a container-based installation that has been "hidden" behind a wrapper script is R. Load the
r-envmodule and check the contents of theRscriptcommand:Observe that it is not the "real"
Rscriptcommand, but a wrapper script usingsingularity exec.This is actually using Apptainer under the hood, as
/usr/bin/singularityis a symlink to/usr/bin/apptainer. -
Now, try running
Rscript: -
As you can see,
Rscriptworks 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-envmodule.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: