$ SINGULARITYENV_RESULTS_DIR=something singularity exec busybox.simg env | grep RESULTS_DIR
RESULTS_DIR=something
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to singu...@lbl.gov.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
Can you provide a (dummy) recipe with a similar entrypoint? I installed Singularity 2.6 for you this morning so I'm ready to go! It will suck if it's an old bug that doesn't pass the variables to the SCIF apps.
$ singularity run --app lammps lamps.simg
lammps is running.
Single node Output file is vanessa-ThinkPad-T460s_lammps_2019_05_08.results and log is vanessa-ThinkPad-T460s_lammps_2019_05_08 and results dir is /home/vanessa/lammps
$ SINGULARITYENV_CUSTOM_RESULTS_DIR=/tmp/pancakes singularity run --app lammps lamps.simg
lammps is running.
Single node Output file is vanessa-ThinkPad-T460s_lammps_2019_05_08.results and log is vanessa-ThinkPad-T460s_lammps_2019_05_08 and results dir is /tmp/pancakes
$ singularity exec --app lammps lamps.simg env | grep SCIF_APP
SCIF_APPROOT_lammps=/scif/apps/lammps
SCIF_APPMETA=/scif/apps/lammps/scif
SCIF_APPRUN_lammps=/scif/apps/lammps/scif/runscript
SCIF_APPLABELS_lammps=/scif/apps/lammps/scif/labels.json
SCIF_APPDATA=/scif/data/lammps
SCIF_APPROOT=/scif/apps/lammps
SCIF_APPLIB_lammps=/scif/apps/lammps/lib
SCIF_APPDATA_lammps=/scif/data/lammps
SCIF_APPINPUT=/scif/data/lammps/input
SCIF_APPBIN_lammps=/scif/apps/lammps/bin
SCIF_APPS=/scif/apps
SCIF_APPOUTPUT=/scif/data/lammps/output
SCIF_APPMETA_lammps=/scif/apps/lammps/scif
SCIF_APPNAME=lammps
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
SCIF_APPROOT_lammps=/scif/apps/lammps
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
Sure thing! Setting SINGULARITY_ROOTFS to anything in any location other than %setup doesn't make sense - it's only valid for that section as the base (root) of where the build is happening before it's squashed up. I set it to be the app base because that is the (apps) personal base that is built into the folder. If you want somewhere to write data (meaning bind from the host) then you probably want the SCIF_APPDATA, which would be under /scif/data/<appname>.Actually I might have gotten it wrong, looks like it's SCIF_APPROOT (not SCIF_APPBASE)SCIF_APPROOT_lammps=/scif/apps/lammpsMy mistake! That's probably why you see similar result (neither are defined). Give that one a try - along with SCIF_APPDATA. Both should be defined as the locations for lammps when it's running.The purpose of SCIF is to allow for modular environments, so setting any global variables for an app doesn't make sense, unless of course you have something specific in mind. In your case, you could just reference SCIF_APPNAME when lammps is running to get lammps (and this would work for any other app).