@@ -147,7 +147,7 @@ that you might set, the following variables are available to you:
147147
148148Additionally, the variables ``module_base ``, ``container_base ``, and ``registry ``
149149can be set with environment variables that will be expanded at runtime. You cannot
150- use the protected set of substitution variables (``$install_dir `` and ``$install_root ``)
150+ use the protected set of substitution variables (``$install_dir `` and ``$root_dir ``)
151151as environment variables, as they will be subbed in by shpc before environment
152152variable replacement. A summary table of variables is included below, and then further discussed in detail.
153153
@@ -169,8 +169,8 @@ variable replacement. A summary table of variables is included below, and then f
169169 - The install directory for modules
170170 - $root_dir/modules
171171 * - container_base
172- - Where to install containers. If not defined, they are installed alongside modules.
173- - null
172+ - Where to install containers. If not defined, they are installed in "containers" in the install root
173+ - $root_dir/containers
174174 * - container_tech
175175 - The container technology to use (singularity or podman)
176176 - singularity
@@ -287,29 +287,32 @@ your install:
287287 $ shpc config set module_base:\$root_dir/modules
288288
289289
290- This directory will be the base where lua files are added, and container are stored.
291- For example, if you were to add a container with unique resource identifier ` python/3.8 `
292- you would see:
290+ This directory will be the base where lua files are added, and containers are stored
291+ in a directory alongside it. For example, if you were to add a container with unique
292+ resource identifier ` python/3.8 ` you would see:
293293
294294.. code-block :: console
295295
296296 $install_dir/modules/
297297 └── python
298298 └── 3.9.2
299- ├── module.lua
299+ └── module.lua
300+
301+ $install_dir/containers/
302+ └── python
303+ └── 3.9.2
300304 └── python-3.9.2.sif
301305
302- Although your module path might have multiple locations, Singularity Registry HPC
303- assumes this one location to install container modules to in order to ensure
306+ Singularity Registry HPC uses this simple directory structure to ensure
304307a unique namespace.
305308
306309
307310Container Images Folder
308311-----------------------
309312
310- If you don't want your container images (sif files) to live alongside your
311- module files, then you should define the ``container_base `` to be something
312- non-null (a path that exists) . For example:
313+ If you don't want your container images (sif files) to live in the root of shpc
314+ in a directory called "containers," then you should define the ``container_base `` to be something
315+ different . For example:
313316
314317.. code-block :: console
315318
@@ -318,7 +321,9 @@ non-null (a path that exists). For example:
318321
319322
320323 The same hierarchy will be preserved as to not put all containers in the same
321- directory.
324+ directory. It's strongly recommended to keep modules separate from containers
325+ for faster loading (applies to container technologies like Singularity that
326+ pull binary files directly).
322327
323328
324329Registry
@@ -567,10 +572,13 @@ and then a message to indicate that the module was created.
567572 modules/
568573 └── python
569574 └── 3.9.2
570- ├── module.lua
571- └── python-3.9.2.sif
575+ └── module.lua
572576
573- 2 directories, 2 files
577+ $ tree containers/
578+ containers/
579+ └── python
580+ └── 3.9.2
581+ └── python-3.9.2.sif
574582
575583
576584 You can also install a specific tag (as shown in list).
@@ -1015,10 +1023,10 @@ If you want to quickly get the path to a container binary, you can use get.
10151023.. code-block :: console
10161024
10171025 $ shpc get vanessa/salad:latest
1018- /home/vanessa/Desktop/Code/singularity-hpc/modules /vanessa/salad/latest/vanessa-salad-latest-sha256:8794086402ff9ff9f16c6facb93213bf0b01f1e61adf26fa394b78587be5e5a8.sif
1026+ /home/vanessa/Desktop/Code/singularity-hpc/containers /vanessa/salad/latest/vanessa-salad-latest-sha256:8794086402ff9ff9f16c6facb93213bf0b01f1e61adf26fa394b78587be5e5a8.sif
10191027
10201028 $ shpc get tensorflow/tensorflow:2.2.2
1021- /home/vanessa/Desktop/Code/singularity-hpc/modules /tensorflow/tensorflow/2.2.2/tensorflow-tensorflow-2.2.2-sha256:e2cde2bb70055511521d995cba58a28561089dfc443895fd5c66e65bbf33bfc0.sif
1029+ /home/vanessa/Desktop/Code/singularity-hpc/containers /tensorflow/tensorflow/2.2.2/tensorflow-tensorflow-2.2.2-sha256:e2cde2bb70055511521d995cba58a28561089dfc443895fd5c66e65bbf33bfc0.sif
10221030
10231031 If you select a higher level module directory or there is no sif, you'll see:
10241032
0 commit comments