Hi Ben
I have not tried to convert the Docker image to Singularity myself yet and don't have any experience with it, so I am just looking at the Singularity documentation to see if I can spot a obvious solution.
I am guessing it is not possible to force the container user to be idies or run it as a user with UID,GID = 1000:1000 ?
I did recently try to run a eSASS image in a CharlieCloud setting and had a similar issue there in that the container user is the same as the host user and none of the setup shell scripts would work. The solution there was to force the environment settings at startup. Perhaps the same could be done with %environment when bootstrapping the image from Docker?
The environment should be the following (knock on wood)
Code: Select all
SASS_ROOT=/home/idies/sw/eSASS4EDR
LD_LIBRARY_PATH=/opt/heasoft/lib:/home/idies/miniconda3/lib
E_LIB=/home/idies/sw/eSASS4EDR/lib
CALDB=/home/idies/caldb
EXT=lnx
SASS_PAR=/home/idies/sw/eSASS4EDR/par
SASS_TESTDATA=/home/idies/sw/eSASS4EDR/sass/testdata
HEASOFT_VERSION=6.27.2
CC=/usr/bin/gcc
SASS_DIR=/home/idies/sw/eSASS4EDR
XANADU=/opt
SASS_SETUP=/home/idies/sw/eSASS4EDR/sass/setup
PGPLOT_FONT=/opt/heasoft/lib/grfont.dat
PGPLOT_DIR=/opt/heasoft/lib
DEBIAN_FRONTEND=noninteractive
CALDBALIAS=/home/idies/caldb/software/tools/alias_config.fits
FTOOLSOUTPUT=stdout
E_ROOT=/home/idies/sw/eSASS4EDR/erosita
SASS_HOME=/home/idies/sw/eSASS4EDR
HEADAS=/opt/heasoft
PFILES=/home/idies/pfiles;/home/idies/sw/eSASS4EDR/par:/opt/heasoft/syspfiles
SASS_BIN_ROOT=/home/idies/sw/eSASS4EDR/bin
XRDEFAULTS=/opt/heasoft/xrdefaults
CALDBCONFIG=/home/idies/caldb/software/tools/caldb.config
E_MOD=/home/idies/sw/eSASS4EDR/include
FC=/usr/bin/gfortran
TCLRL_LIBDIR=/opt/heasoft/lib
FTOOLS=/opt/heasoft
LYNX_CFG=/opt/heasoft/lib
CXX=/usr/bin/g++
PERL=/usr/bin/perl
LHEA_HELP=/opt/heasoft/help
POW_LIBRARY=/opt/heasoft/lib/pow
PERL5LIB=/opt/heasoft/lib/perl
SHLVL=1
PYTHONPATH=/opt/heasoft/lib/python:/opt/heasoft/lib
PGPLOT_RGB=/opt/heasoft/lib/rgb.txt
SASS_CALVERS=/home/idies/caldb/data/erosita/calvers.indx
LHEA_DATA=/opt/heasoft/refdata
LHEAPERL=/usr/bin/perl
LHEASOFT=/opt/heasoft
PATH=/home/idies/sw/eSASS4EDR/bin:/opt/heasoft/bin:/home/idies/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PERLLIB=/opt/heasoft/lib/perl
PFCLOBBER=1
PYTHON=/home/idies/miniconda3/bin/python
XANBIN=/opt/heasoft
FTOOLSINPUT=stdin
SASS_TEMPLATES=/home/idies/sw/eSASS4EDR
I hope this somehow helps
cheers
Jonas