Skip to content

Generic Container Description #2157

Description

@baldikacti

Is your feature request related to a problem? Please describe.
Defining a container in Pegasus workflows requires an explicit call to a specific engine, such as NAMESPACE.SINGULARITY. This requires lengthy if-else statements and relies on CLI input to support systems with only 1 container engine.

Describe the solution you'd like
The solution could be to keep the Container function description generic with no NAMESPACE call, and let user define the container engine in the NAMESPACE.PEGASUS or add_pegasus_profile with an argument like container='docker', etc.
Additionally, it would be very helpful if the Container function included an option to define separate containers for different container engines. For example, the workflow developer can provide options for Singularity and Docker containers, and depending on the user's selection, the relevant container will be pulled.

Example solution:

site.add_pegasus_profile(container_engine = "singularity")
container = Container(
    "alphafold3",
    docker = "baldikacti/alphafold3:latest",
    singularity = "https://depot.galaxyproject.org/singularity/alphafold3:latest",
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions