Hey Oriol!
In a nutshell, yes - one of the features of Singularity is seamlessness between the container and environment of the host, and this is very different from other container solutions (e.g. Docker) and one of the reasons it works really great for scientific computing. You can fine turn which software gets used by way of PATH or by calling the executable directly (the latter is usually my preference). If you have specific use cases or example workflows that you want help with, feel free to post on here and we can walk through different things to try.
Best,
Vanessa
> On Mar 30, 2017, at 11:14 AM, Oriol Guitart Pla <oriol.guitart@irbbarcelona.org> wrote:
>
> Hello,
>
>
> I have been testing singularity to use it in our cluster. I was surprised to see that the software that is installed in the computer where singularity runs, it is also available from inside the container. For instance, I have an R script that calls a java jar and I'm calling it from singularity. I do not have java installed in my container but it is still working because it uses the java that is installed in my computer.
>
> Is this behavior normal in containers? How to make sure that is using, for instance, the java that is installed in the container and not the one in my computer? Is it just a matter of playing with the PATH? By the way, the java issue is just an example.
>
> Thanks in advance for your comments,
>
>
> oriol
>
>
>
> --
> 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.
--
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.
IMO it would have useful to have command line option to *not* import the hosting environment in order to isolate the contained application(s) from the external one.Cheers,
Paolo
On Thu, Mar 30, 2017 at 5:42 PM, vanessa s <vso...@gmail.com> wrote:
Hey Oriol!
In a nutshell, yes - one of the features of Singularity is seamlessness between the container and environment of the host, and this is very different from other container solutions (e.g. Docker) and one of the reasons it works really great for scientific computing. You can fine turn which software gets used by way of PATH or by calling the executable directly (the latter is usually my preference). If you have specific use cases or example workflows that you want help with, feel free to post on here and we can walk through different things to try.
Best,
Vanessa
> On Mar 30, 2017, at 11:14 AM, Oriol Guitart Pla <oriol....@irbbarcelona.org> wrote:
>
> Hello,
>
>
> I have been testing singularity to use it in our cluster. I was surprised to see that the software that is installed in the computer where singularity runs, it is also available from inside the container. For instance, I have an R script that calls a java jar and I'm calling it from singularity. I do not have java installed in my container but it is still working because it uses the java that is installed in my computer.
>
> Is this behavior normal in containers? How to make sure that is using, for instance, the java that is installed in the container and not the one in my computer? Is it just a matter of playing with the PATH? By the way, the java issue is just an example.
>
> Thanks in advance for your comments,
>
>
> oriol
>
>
>
> --
> 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.
--
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.
--
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.
Hi Oriol,Can you confirm (e.g. with an strace from within the container) and follow the execution of your R script where calls the java jar file (e.g. the exact path of the binary calling your jar file)?Do you have a java installation in a shared location (e.g. `$HOME/bin`) or another location that has been bound into the container?Greg
--On Thu, Mar 30, 2017 at 8:14 AM, Oriol Guitart Pla <oriol.guitart@irbbarcelona.org> wrote:Hello,
I have been testing singularity to use it in our cluster. I was surprised to see that the software that is installed in the computer where singularity runs, it is also available from inside the container. For instance, I have an R script that calls a java jar and I'm calling it from singularity. I do not have java installed in my container but it is still working because it uses the java that is installed in my computer.
Is this behavior normal in containers? How to make sure that is using, for instance, the java that is installed in the container and not the one in my computer? Is it just a matter of playing with the PATH? By the way, the java issue is just an example.
Thanks in advance for your comments,
oriol
--
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.
Gregory M. KurtzerHPC Systems Architect and Technology DeveloperLawrence Berkeley National Laboratory HPCS
University of California Berkeley Research IT
Singularity Linux Containers (http://singularity.lbl.gov/)Warewulf Cluster Management (http://warewulf.lbl.gov/)
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.