github.com/hpcng/singularity@v3.1.1+incompatible/examples/apps/README.md (about)

     1  # Singularity SCI-F Apps
     2  
     3  The Scientific Filesystem is well suited for Singularity containers to allow you
     4  to build a container that has multiple entrypoints, along with modular environments,
     5  libraries, and executables. Here we will review the basic building and using of a
     6  Singularity container that implements SCIF. For more quick start tutorials, see
     7  the [official documentation for SCIF](https://vsoch.github.io/scif/).
     8  
     9  Build your image
    10  
    11  ```
    12  sudo singularity build cowsay.simg Singularity.cowsay 
    13  ```
    14  
    15  What apps are installed?
    16  
    17  ```
    18  singularity apps cowsay.simg
    19  cowsay
    20  fortune
    21  lolcat
    22  ```
    23  
    24  Ask for help for a specific app!
    25  
    26  ```
    27  singularity help --app fortune cowsay.simg
    28  fortune is the best app
    29  ```
    30  
    31  Run a particular app
    32  
    33  ```
    34  singularity run --app fortune cowsay.simg
    35  When I reflect upon the number of disagreeable people who I know who have gone
    36  to a better world, I am moved to lead a different life.
    37  		-- Mark Twain, "Pudd'nhead Wilson's Calendar"
    38  ```
    39  
    40  Inspect an app
    41  
    42  ```
    43   singularity inspect --app fortune cowsay.img 
    44  {
    45      "SCIF_APPNAME": "fortune",
    46      "SCIF_APPSIZE": "1MB"
    47  }
    48  ```