Skip to content

Build error with --build-template conda/micromamba:v2 for singularity #971

@mashehu

Description

@mashehu

When trying

wave --conda-file ~/drugresponseeval/modules/local/evaluate_find_max/environment.yml 
		--freeze
        --platform linux/arm64 
		-o yaml 
		--build-template conda/micromamba:v2 
		--log-level DEBUG 
		--singularity
        --await

I get the following build error (see build page https://wave.seqera.io/view/builds/bd-4ad8f1096976ef9c_6):

INFO:    Extracting OCI image...
INFO:    Inserting Singularity configuration...
INFO:    Copying /opt/conda.tar.gz to /opt/conda.tar.gz
INFO:    Running post scriptlet
+ cd /opt
+ tar xzf conda.tar.gz
tar: conda/conda-meta: Cannot change mode to rwxrwxrwx: No such file or directory
tar: conda/pkgs/cache: Cannot change mode to rwxrwsr-x: No such file or directory
tar: conda/pkgs/_openmp_mutex-4.5-2_gnu/info/recipe/parent/tests/fortomp: Cannot change mode to rwxrwxr-x: No such file or directory
...

It builds fine with the default template, but I want the pip dependencies from my environment.yml in the lock file.

I am aware of the limitation related to tar and singularity mentioned in the docs, but the default base images comes with tar so should be fine:

docker run mambaorg/micromamba:1.5.10-noble  tar --version
tar (GNU tar) 1.35
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions