Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ docker run $container bamtools --version
```

Available build templates:
- `conda/micromamba:v1` - Default Conda build using Micromamba 1.x
- `conda/micromamba:v2` - Multi-stage build using Micromamba 2.x
- `conda/micromamba:v1` - Single-stage build using Micromamba 1.x
- `conda/micromamba:v2` - Multi-stage build using Micromamba 2.x (default for Conda packages)
- `conda/micromamba:v2-fast` - Like `conda/micromamba:v2`, with the Conda environment split into multiple image layers grouped by package, each under 512 MB. Docker images only
- `conda/pixi:v1` - Multi-stage build using Pixi package manager
- `conda/pixi:v1-fast` - Like `conda/pixi:v1`, with the Conda environment split into multiple image layers grouped by package, each under 512 MB. Docker images only
- `cran/installr:v1` - Build template for CRAN/R packages

#### Build a container by using a Conda environment file
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/io/seqera/wave/cli/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public class App implements Runnable {
@Option(names = {"--build-compression"}, paramLabel = "<value>", description = "Specify the compression algorithm to be used for the build context, it can be 'gzip', 'zstd' or 'estargz'")
private BuildCompression.Mode buildCompression;

@Option(names = {"--build-template"}, paramLabel = "<value>", description = "Specify the build template to be used for building the container, e.g. 'conda/pixi:v1', 'conda/micromamba:v1', 'conda/micromamba:v2', 'cran/installr:v1'")
@Option(names = {"--build-template"}, paramLabel = "<value>", description = "Specify the build template to be used for building the container, e.g. 'conda/pixi:v1', 'conda/pixi:v1-fast', 'conda/micromamba:v1', 'conda/micromamba:v2', 'conda/micromamba:v2-fast', 'cran/installr:v1'")
private String buildTemplate;

public static void main(String[] args) {
Expand Down
9 changes: 6 additions & 3 deletions app/src/test/groovy/io/seqera/wave/cli/AppTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -348,17 +348,20 @@ class AppTest extends Specification {
req.buildTemplate == 'conda/pixi:v1'
}

def 'should set build template micromamba' () {
def 'should set build template #TEMPLATE' () {
given:
def app = new App()
String[] args = ["--build-template", 'conda/micromamba:v2']
String[] args = ["--build-template", TEMPLATE]

when:
new CommandLine(app).parseArgs(args)
and:
def req = app.createRequest()
then:
req.buildTemplate == 'conda/micromamba:v2'
req.buildTemplate == TEMPLATE

where:
TEMPLATE << ['conda/micromamba:v2', 'conda/micromamba:v2-fast', 'conda/pixi:v1-fast']
}

def 'should not allow dry-run and await' () {
Expand Down
Loading