Hi,I am using an Ubuntu xenial based image on which I install conda. To activate a conda environment I need to be able to run "source activate <env_name>" and conda only supports bash.I have created a %runscript section in my definition file but the corresponding /singularity file that is created uses sh (#!/bin/sh).Is it possible to tell singularity to use "#!/bin/bash" instead of "#!/bin/sh"?Apart from this particular case I see many other situation in which a user might prefer to use another shell for their runscript...Thanks in advance for your help!Best,Roberto
Roberto Mosca, PhD
Structural Bioinformatics and Network Biology
Institute for Research in Biomedicine (IRB Barcelona)
C/ Baldiri Reixac 10, 08028 Barcelona, Spain
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
Hi Roberto,I've run into the same problem with conda environments in the past. The way that I got around it was to explicitly execute my commands with bash in the runscript like so:%runscript/bin/bash <<EOFecho "some code here"EOFHope that helps.Dave
On Wed, Oct 11, 2017 at 5:02 AM, Roberto MOSCA <roberto.mosca@irbbarcelona.org> wrote:
Hi,I am using an Ubuntu xenial based image on which I install conda. To activate a conda environment I need to be able to run "source activate <env_name>" and conda only supports bash.I have created a %runscript section in my definition file but the corresponding /singularity file that is created uses sh (#!/bin/sh).Is it possible to tell singularity to use "#!/bin/bash" instead of "#!/bin/sh"?Apart from this particular case I see many other situation in which a user might prefer to use another shell for their runscript...Thanks in advance for your help!Best,RobertoRoberto Mosca, PhD
Structural Bioinformatics and Network Biology
Institute for Research in Biomedicine (IRB Barcelona)
C/ Baldiri Reixac 10, 08028 Barcelona, Spain
Email: roberto.mosca@irbbarcelona.org :: Tel: +34 93 4039689
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.