Phil Ewels
10/15/2024, 8:25 PMPhil Ewels
10/15/2024, 8:25 PMbrew install seqeralabs/tap/wave-cli
Create a Docker container based on your environment.yml file, use for the main.nf container attribute
โฏ wave --conda-file environment.yml --freeze --await
community.wave.seqera.io/library/multiqc:1.25.1--dc1968330462e945
Create a Singularity container:
โฏ wave --conda-file environment.yml --freeze --await --singularity
oras://community.wave.seqera.io/library/multiqc:1.25.1--f0e743d16869c0bf
Inspect the generated Singularity image:
$ wave --inspect --image oras://community.wave.seqera.io/library/multiqc:1.25.1--f0e743d16869c0bf -o yaml
container:
config:
config:
cmd: &id001 []
entrypoint: *id001
env: *id001
rootfs:
diff_ids: *id001
digest: sha256:11036a814c8817a34c87244f42bd5a96da66863af7682388990b02ffd11f3d41
hostName: https://community.wave.seqera.io
imageName: library/multiqc
manifest:
config:
digest: sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
mediaType: application/vnd.unknown.config.v1+json
size: 2
layers:
- annotations:
org.opencontainers.image.title: image.sif
digest: sha256:645dd9ac0263e27773eca8c8d803e5b89e93d7d3ef0afbc0954cdb49303ac99c
mediaType: application/vnd.sylabs.sif.layer.v1.sif
size: 365629440
uri: https://community.wave.seqera.io/v2/library/multiqc/blobs/sha256:645dd9ac0263e27773eca8c8d803e5b89e93d7d3ef0afbc0954cdb49303ac99c
schemaVersion: 2
reference: 1.25.1--f0e743d16869c0bf
registry: community.wave.seqera.io
Copy the digest string under manifest.layers[0] and remove the sha256: prefix - in this case it's 645dd9ac0263e27773eca8c8d803e5b89e93d7d3ef0afbc0954cdb49303ac99c (NB: not the config digest)
Use this to build the following URL:
https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/{digest[:2]}/{digest}/data
So for this example it's:
https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/64/645dd9ac0263e27773eca8c8d803e5b89e93d7d3ef0afbc0954cdb49303ac99c/data
Check that you can download it locally and that it looks like a Singularity file locally (100s MB binary file).
Use this URL in the main.nf Singularity container.James Fellows Yates
10/16/2024, 4:06 AMPhil Ewels
10/16/2024, 6:35 AMhttps part, as in this case we already have an environment.yml file and we can use that directly with the CLIPhil Ewels
10/16/2024, 6:35 AMPhil Ewels
10/16/2024, 6:36 AMPhil Ewels
10/16/2024, 6:37 AMJames Fellows Yates
10/16/2024, 7:02 AMJames Fellows Yates
10/16/2024, 7:02 AMwave just spit out the require URLs after creation and upload?James Fellows Yates
10/16/2024, 7:02 AMPhil Ewels
10/16/2024, 7:04 AMPhil Ewels
10/16/2024, 7:04 AMPhil Ewels
10/16/2024, 7:05 AMJames Fellows Yates
10/16/2024, 7:05 AMPhil Ewels
10/16/2024, 7:05 AMPhil Ewels
10/16/2024, 7:06 AMPhil Ewels
10/16/2024, 7:06 AMJames Fellows Yates
10/16/2024, 7:07 AMPhil Ewels
10/16/2024, 7:07 AMPhil Ewels
10/16/2024, 7:11 AMJames Fellows Yates
10/16/2024, 7:11 AMPhil Ewels
10/16/2024, 7:11 AMJames Fellows Yates
10/16/2024, 7:11 AMPhil Ewels
10/16/2024, 7:12 AMPhil Ewels
10/16/2024, 7:12 AMJames Fellows Yates
10/16/2024, 7:12 AMJames Fellows Yates
10/16/2024, 7:12 AMJames Fellows Yates
10/16/2024, 7:12 AMPhil Ewels
10/16/2024, 7:13 AMPhil Ewels
10/16/2024, 7:13 AMsuzannejin
11/28/2024, 4:13 PMoras://community.wave.seqera.io/library/multiqc:1.25.1--f0e743d16869c0bf not useful directly?Phil Ewels
11/28/2024, 4:30 PM