singularityhub / singularity-hpc

Local filesystem registry for containers (intended for HPC) using Lmod or Environment Modules. Works for users and admins.
https://singularity-hpc.readthedocs.io
Mozilla Public License 2.0
110 stars 25 forks source link

SHPC provide option to just get command provided in module.lua #667

Open Amjadhpc opened 6 months ago

Amjadhpc commented 6 months ago

Hello I am newbie to shpc and still learning Does shpc has any flag that will inspect the module.lua file generated and just get the command section? or there is a flag in config section that can move the commands provided commands to a location so that when user load module, that binary is in the PATH.

E.g . Module.lua for couchdb 3.1. consists

couchdb: singularity exec -B /99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchdb "$@"

Can this binaires be added as files to path where couchdb module.lua is located ?

vsoch commented 6 months ago

It generates a standard module for your software of interest, so you can use the standard module info or similar to inspect the files.