GNU/Linux ◆ xterm-256color ◆ bash 1850 views

This is an example for a container that serves to make it easy to run various metrics over an analysis of interest (the container’s main runscript). Each installed app can be thought of as a particular context to evoke the container’s main runscript.

https://github.com/containers-ftw/metrics-ftw

# List all apps
singularity apps <container>

# Run a specific app
singularity run --app <app> <container>

# Loop over all apps
for app in $(singularity apps metrics.img); do
    singularity run --app $app metrics.img
done