Basically all we need to do is to change the following line in the bc_desktop/template/script.sh.erb:
source "<%= session.staged_root.join("desktops", "#{context.desktop}.sh") %>"
…and instead do something like this:
singularity exec ... image.img "<%= session.staged_root.join("desktops", "#{context.desktop}.sh") %>"
script_wrapper seems maybe to be a little too far upstream, but there may be some solution I’m not seeing that one of you might.
We want to run a desktop, and by and large the existing options are fine, but need some changes because we don’t have some of the dependencies on all of our nodes, and therefore need to point to alternate locations for some of the dependencies (like VNC and websockify) and use Singularity to run an image that contains the desktop group, etc. The alternate location stuff should all be doable via environment variables set in the various YAML files, but the one command I’m not sure how to handle.
Had discovered both of those locations already; unfortunately nothing related to the job dying during creation in either one of them, but it sounds like what I was trying to do is not achievable via the method I was trying, so that might be moot.