Singularity Builder’s __main__

Main Module to make the builder directly executable through cli.

This __main__ module contains function arg_parser(), parsing command line options and function main(), controlling the applications flow.

Command line Options are:

--path Full path to the base folder, containing all recipe files to be build.
--image_type Image type, in the form of types suffix, of the images to be build.

scrolls

singularity_autobuild.__main__.arg_parser()[source]

Reads command line arguments.

Return type:Namespace
Returns:Values of accepted command line arguments.
singularity_autobuild.__main__.main(search_folder=None, image_type='simg')[source]

Function to tie the functionality of this module together.

Parameters:
  • search_folder (Optional[str]) – The base folder for image_recipe_tools.recipe_finder() to search through.
  • image_type (str) – The image type to be passed to singularity_builder.Builder constructor and to be created by singularity_builder.Builder.build().