View on GitHub

gssi-training

VSC training: Getting Scientific Software Installed

Building Apptainer containers

This exercise aims to give you hands-on experience with building Apptainer containers and contrasting some different approaches. It should take approximately 30 minutes to an hour to complete (potentially more when also conducting the benchmark exercises). It is recommended to choose a software package related to your area of research, but if you are really lacking inspiration, you can complete this exercise using the astropy package.

You can find the relevant documentation in the “Building Containers” section of the GSSI training material and in the Building Containers section on VSCDocs.

Here are the different methods you can use to build an Apptainer container on a VSC cluster:

When building with hpc-container-wrapper, however, only Conda or pip can be used.

For the other methods, astropy can be installed in the container in different ways:

Configure the container environment and runscript to ensure the following runs successfully:

apptainer run <image.sif> <app-command>

For astropy, you can use python3 -c 'import astropy; print(astropy.__file__)' as app-command.

After trying the different installation approaches, compare them with respect to the following characteristics: