Skip to content

shub.create

Vanessa Sochat edited this page Oct 15, 2017 · 1 revision

With Singularity 2.4 we are adding a basic command line client to generate a recipe template, or a skeleton with empty sections for you to fill in. First, to see help:

shub create --help

Usage: shub create [-h] [--recipe] [--app APP] [--from BOOTSTRAP_FROM]
                   [--bootstrap BOOTSTRAP] [--outfolder OUTFOLDER]

optional arguments:
  -h, --help            show this help message and exit
  --recipe              create template recipe
  --app APP             the name of an app to include in the recipe
  --from BOOTSTRAP_FROM
                        the bootstrap "from", should coincide with "bootstrap"
                        type
  --bootstrap BOOTSTRAP
                        the bootstrap type, default is docker
  --outfolder OUTFOLDER
                        full path to folder for output, stays in tmp (or pwd)
                        if not specified

You can generate a relatively blank template, default bootstrap is docker

shub create
DEBUG bootstrap: docker
Output file written to /home/vanessa/Documents/Dropbox/Code/singularity/singularity-python/examples/create/make_runscript/Singularity

You can also create a recipe template for an app

shub create --app foo

DEBUG bootstrap: docker
Output file written to /home/vanessa/Documents/Dropbox/Code/singularity/singularity-python/examples/create/make_runscript/Singularity.foo

And here is how to be more specific in the arguments you ask for:

shub create --app foo --from ubuntu --bootstrap docker
Clone this wiki locally