@@ -206,6 +206,9 @@ A summary table of variables is included below, and then further discussed in de
206
206
* - singularity_shell
207
207
- exported to SINGULARITY_SHELL, defaults to /bin/bash.
208
208
- /bin/bash
209
+ * - namespace
210
+ - Set a default module namespace that you want to install from.
211
+ - null
209
212
210
213
211
214
@@ -339,16 +342,29 @@ Config
339
342
------
340
343
341
344
If you want to edit a configuration value, you can either edit the ``shpc/settings.yml ``
342
- file directly, or you can use ``shpc config ``. The following example shows changing
343
- the default module_base path from the install directory modules folder.
345
+ file directly, or you can use ``shpc config ``, which will accept:
346
+
347
+ - set to set a parameter and value
348
+ - get to get a parameter by name
349
+
350
+
351
+ The following example shows changing the default module_base path from the install directory modules folder.
344
352
345
353
.. code-block :: console
346
354
347
355
# an absolute path
348
- $ shpc config module_base:/opt/lmod/modules
356
+ $ shpc config set module_base:/opt/lmod/modules
349
357
350
358
# or a path relative to the install directory, remember to escape the "$"
351
- $ shpc config module_base:\$install_dir/modules
359
+ $ shpc config set module_base:\$install_dir/modules
360
+
361
+
362
+ And then to get values:
363
+
364
+ .. code-block :: console
365
+
366
+ $ shpc config get module_base
367
+
352
368
353
369
354
370
Show and Install
@@ -420,6 +436,70 @@ the container technology.
420
436
If you don't have any module software on your system, you can now test interacting
421
437
with the module via the :ref: `getting_started-development ` instructions.
422
438
439
+
440
+ Namespace
441
+ ---------
442
+
443
+ Let's say that you are exclusively using continers in the namespace ghcr.io/autamus.
444
+
445
+ .. code-block :: console
446
+
447
+ registry/ghcr.io/
448
+ └── autamus
449
+ ├── abi-dumper
450
+ ├── abyss
451
+ ├── accumulo
452
+ ├── addrwatch
453
+ ...
454
+ ├── xrootd
455
+ ├── xz
456
+ └── zlib
457
+
458
+
459
+ It can become arduous to type the entire namespace every time! For this purpose,
460
+ you can set a namespace:
461
+
462
+ .. code-block :: console
463
+
464
+ $ shpc namespace use ghcr.io/autamus
465
+
466
+ And then instead of asking to install clingo as follows:
467
+
468
+ .. code-block :: console
469
+
470
+ $ shpc install ghcr.io/autamus/clingo
471
+
472
+
473
+ You can simply ask for:
474
+
475
+
476
+ .. code-block :: console
477
+
478
+ $ shpc install clingo
479
+
480
+
481
+ And when you are done, unset the namespace.
482
+
483
+
484
+ .. code-block :: console
485
+
486
+ $ shpc namespace unset
487
+
488
+
489
+ Note that you can also set the namespace as any other setting:
490
+
491
+ .. code-block :: console
492
+
493
+ $ shpc config set namespace:ghcr.io/autamus
494
+
495
+ Namespaces currently work with:
496
+
497
+ - install
498
+ - uninstall
499
+ - show
500
+ - add
501
+ - check
502
+
423
503
List
424
504
----
425
505
0 commit comments