ENV CUDA_VERSION 8.0.61
ENV CUDA_PKG_VERSION 8-0=$CUDA_VERSION-1
It is not defined in the %post section. E.g. if I do in the %post:
echo CUDA_PKG_VERSION $CUDA_PKG_VERSION
echo PATH $PATH
then the output during bootstrap is:
+ echo CUDA_PKG_VERSION
CUDA_PKG_VERSION
+ echo PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
Is this a feature or a bug?
Thanks,
MC
singularity inspect container.img
cat /.singularity.d/env/10-docker.sh
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
--
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.
--
David and Vanessa,
Thanks for your replies.
I would vote for sourcing everything from /.singularity/env in the %post (and in %test). It has been confusing me and my colleagues for a while not having the expected environment in the %test.
At least the 10-docker.sh should be sourced to be consistent with Docker behavior.
The 90-environment.sh in %post is debatable since there is a chance the directories listed in there may not be created yet before the packages are installed in them in the %post.
Sourcing the /.singularity.d/env files is a good workaround, though.
BTW, in that source code you sent I happened to notice that line 82 contains
SINGULARITY_ENVIRONMENT="/.singularity.d/env/91-environment.sh"
though it looks like it's not propagating anywhere.
MC
--
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.
--