GithubHelp home page GithubHelp logo

Comments (5)

samcmill avatar samcmill commented on July 18, 2024

Thanks for the issue report @michael-sutherland.

What version of Singularity are you using?

Can you please check whether /var/tmp/environment.yml exists on the host?

Some background: the reason HPCCM uses /var/tmp rather than /tmp is that Singularity mounts /tmp from the host into the container build process. Using /tmp would sometimes result in leftover files from the container build polluting the host /tmp or conflicts between paths with the same name. It looks like Singularity's behavior has changed and (at least as of 3.5.3) it also mounts /var/tmp from the host at build time.

from hpc-container-maker.

michael-sutherland avatar michael-sutherland commented on July 18, 2024

I'm using singularity version 3.6.4-1.el8.

/var/tmp/environment.yml, does NOT exist on my host (although I see the miniconda installer among other files).

from hpc-container-maker.

samcmill avatar samcmill commented on July 18, 2024

@michael-sutherland can you please try #333?

Specifically, add hpccm.config.set_working_directory('/') to your script (before the conda building block).

Alternatively, add wd keyword argument to the conda building block:

    stage += hpccm.building_blocks.conda(environment="environment.yml",
                                         eula=True,
                                         ospackages=['wget', 'ca-certificates', 'git'],
                                         wd='/')

from hpc-container-maker.

VI-gha avatar VI-gha commented on July 18, 2024

Another option could be to NOT use a separate environment.yml file but have all the conda channels and conda packages explicitly listed in the same building block using something like:

stage += hpccm.building_blocks.conda(channels=['conda-forge'], packages=['numpy'], eula=True, ospackages=['wget', 'ca-certificates', 'git'])

from hpc-container-maker.

samcmill avatar samcmill commented on July 18, 2024

Closing as fixed by #333. Please reopen if the issue persists.

from hpc-container-maker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.