maple.backend.singularity.container module

Python API for singularity interface in maple

maple.backend.singularity.container.commit()

Commit changes from local container to local image

maple.backend.singularity.container.execute(command)

Run local image in a container

Parameters

command (command string) –

maple.backend.singularity.container.list()

List all containers on system

maple.backend.singularity.container.notebook(port='4321')

Launch ipython notebook inside the container

Parameters

port (port id ('4321')) –

maple.backend.singularity.container.pour(options='--no-home')

Pour local image in a container, opposite of maple rinse

Parameters

options (string of options) –

maple.backend.singularity.container.publish(cmd_list=None)

Publish container to an image

Parameters

cmd_list (list of commands to publish) –

maple.backend.singularity.container.rinse(rinse_all=False)

Stop and remove the local container, opposite of maple pour

Parameters

rinse_all ((True/False) flag to rinse all container) –

maple.backend.singularity.container.run(command, options='')

Run and rinse the local container

Parameters
  • command (command string) –

  • options (run options) –

maple.backend.singularity.container.shell()

Get shell access to the local container