container

pilot.user.generic.container.create_stagein_container_command(workdir, cmd)[source]

Create the stage-in container command.

The function takes the isolated stage-in command, adds bits and pieces needed for the containerisation and stores it in a stagein.sh script file. It then generates the actual command that will execute the stage-in script in a container.

Parameters:
  • workdir – working directory where script will be stored (string).

  • cmd – isolated stage-in command (string).

Returns:

container command to be executed (string).

pilot.user.generic.container.do_use_container(**kwargs)[source]

Decide whether to use a container or not.

Parameters:

kwargs – dictionary of key-word arguments.

Returns:

True is function has decided that a container should be used, False otherwise (boolean).

pilot.user.generic.container.wrapper(executable, **kwargs)[source]

Wrapper function for any container specific usage. This function will be called by pilot.util.container.execute() and prepends the executable with a container command.

Parameters:
  • executable – command to be executed (string).

  • kwargs – dictionary of key-word arguments.

Returns:

executable wrapped with container command (string).