A convenience python script that helps create shortcuts in host machine to programs inside of singularity containers.
- Place this inside
~/.local/bin
and make sure you haveexport PATH="$HOME/.local/bin:$PATH"
in.bashrc
or.zshrc
- Make
module
executable by runningchmod +x ~/.local/bin/module
- To load a shortcut to
node
fromdev
singularity instance into~/.local/bin
:
module load node dev
Then simply doing node --version
should use the node inside the container.
- To remove node,
module remove node
This obviously requires the instance to be loaded when the executable is used.