Git Product home page Git Product logo

cbbs-imaging-container-mriqc's People

Contributors

bpoldrack avatar jpvaldes avatar

Watchers

 avatar  avatar  avatar

Forkers

bpoldrack

cbbs-imaging-container-mriqc's Issues

Two ways to build the singularity image

Hi

When building the singularity image myself, I was puzzled by the entrypoint of the resulting mriqc container. I now believe that such behaviour is fully intended by singularity, but following the suggestion from @bpoldrack I am describing the situation below, hoping it might come useful to you.

I am using singularity-2.4 via vagrant and virtualbox (on MacOS).

Specifically, I noticed that if I build the container using:
singularity build mriqc.img docker://poldracklab/fmriprep,
the runscript of such image (checked by singularity inspect --runscript) gets automatically set to exec "/usr/local/miniconda/bin/mriqc".

As a result, it cannot be used as an executable directly, but has to be launched using singularity exec ....

However, I can also use the following build specification file (saved in the example below as Singularity) to change the runscript ($@ ensures that arguments are passed along from the user):

Bootstrap: docker
From: poldracklab/mriqc:0.10.4

%runscript

    /usr/local/miniconda/bin/mriqc $@

The image can then be built by running sudo singularity build mriqc.img Singularity.
I can execute this image directly: ./mriqc.img bids-root/ output-folder/ participant

I find the latter behaviour more natural -- but in the end, using it would require changing the datalad wrapper, so I leave the decision to you.

Relevant Singularity docs:

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.