@@ -147,7 +147,7 @@ that you might set, the following variables are available to you:
147
147
148
148
Additionally, the variables ``module_base ``, ``container_base ``, and ``registry ``
149
149
can 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 ``)
151
151
as environment variables, as they will be subbed in by shpc before environment
152
152
variable replacement. A summary table of variables is included below, and then further discussed in detail.
153
153
@@ -169,8 +169,8 @@ variable replacement. A summary table of variables is included below, and then f
169
169
- The install directory for modules
170
170
- $root_dir/modules
171
171
* - 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
174
174
* - container_tech
175
175
- The container technology to use (singularity or podman)
176
176
- singularity
@@ -287,29 +287,32 @@ your install:
287
287
$ shpc config set module_base:\$root_dir/modules
288
288
289
289
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:
293
293
294
294
.. code-block :: console
295
295
296
296
$install_dir/modules/
297
297
└── python
298
298
└── 3.9.2
299
- ├── module.lua
299
+ └── module.lua
300
+
301
+ $install_dir/containers/
302
+ └── python
303
+ └── 3.9.2
300
304
└── python-3.9.2.sif
301
305
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
304
307
a unique namespace.
305
308
306
309
307
310
Container Images Folder
308
311
-----------------------
309
312
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:
313
316
314
317
.. code-block :: console
315
318
@@ -318,7 +321,9 @@ non-null (a path that exists). For example:
318
321
319
322
320
323
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).
322
327
323
328
324
329
Registry
@@ -567,10 +572,13 @@ and then a message to indicate that the module was created.
567
572
modules/
568
573
└── python
569
574
└── 3.9.2
570
- ├── module.lua
571
- └── python-3.9.2.sif
575
+ └── module.lua
572
576
573
- 2 directories, 2 files
577
+ $ tree containers/
578
+ containers/
579
+ └── python
580
+ └── 3.9.2
581
+ └── python-3.9.2.sif
574
582
575
583
576
584
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.
1015
1023
.. code-block :: console
1016
1024
1017
1025
$ 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
1019
1027
1020
1028
$ 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
1022
1030
1023
1031
If you select a higher level module directory or there is no sif, you'll see:
1024
1032
0 commit comments