diff --git a/src/main/java/io/seqera/tower/cli/commands/LaunchCmd.java b/src/main/java/io/seqera/tower/cli/commands/LaunchCmd.java index 93c27179..1cdc6b57 100644 --- a/src/main/java/io/seqera/tower/cli/commands/LaunchCmd.java +++ b/src/main/java/io/seqera/tower/cli/commands/LaunchCmd.java @@ -104,6 +104,9 @@ public class LaunchCmd extends AbstractRootCmd { @Option(names = {"-l", "--labels"}, split = ",", description = "Comma-separated list of labels for the pipeline.") List labels; + @Option(names = {"--launch-container"}, split = ",", description = "Container to be used to run the nextflow head job.") + List launchContainer; + @ArgGroup(heading = "%nAdvanced options:%n", validate = false) AdvancedOptions adv; @@ -165,7 +168,8 @@ private WorkflowLaunchRequest updateLaunchRequest(WorkflowLaunchRequest base) th .optimizationTargets(coalesce(adv().disableOptimization, false) ? null : base.getOptimizationTargets()) .labelIds(base.getLabelIds()) .headJobCpus(base.getHeadJobCpus()) - .headJobMemoryMb(base.getHeadJobMemoryMb()); + .headJobMemoryMb(base.getHeadJobMemoryMb() + .launchContainer(coalesce(launchContainer, base.getLaunchContainer()))); } protected Response runTowerPipeline(Long wspId) throws ApiException, IOException {