Skip to content

Commit

Permalink
adding an exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
eglerean committed Apr 6, 2024
1 parent 6fc54a7 commit 752e0d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/verify_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This demo will not only verify the presence of Apptainer on your system but will


.. codeblock:: bash

# Check if Apptainer is installed and determine its version
apptainer --version

Expand All @@ -30,15 +31,18 @@ Summary
In this lesson, you learned how to verify the installation of Apptainer on your HPC cluster and how to check its version. This is a foundational skill that ensures you can proceed with confidence in using Apptainer for more advanced tasks in container management.

.. exercise:: Configure Apptainer

Explore the online Apptainer documentation and search for the bash environment variables that apptainer uses.
1. Do you have any apptainer variables set in your shell environment?
2. How do you set the variables for the CACHEDIR and TMPDIR so that they are pointing to a disk where you have enough free space? (e.g. your work folder)

.. solution:: Solution

1. Apptainer uses the following environemnt variables:
2. The following code creates subfolders in your work directory and makes sure that apptainer will use those folders to store temporary files

.. codeblock:: bash

mkdir $WRKDIR/apptainercache/
mkdir $WRKDIR/apptainertemp/
export APPTAINER_CACHEDIR="$WRKDIR/apptainercache/"
Expand Down

0 comments on commit 752e0d6

Please sign in to comment.