some_file.prj is a file in my current working directory on the host. The problem is that inside the container I guess the working directory is set to SCIF-app directory (e.g. /scif/apps/ogs) and consequently my app executable cannot find this file.
When running the container with the following it works:
singularity run example.simg $PWD/some_file.prj
Is the working directory always changed to the SCIF-app directory?
More info on my setup below.
The runscript of the container is: exec scif run ogs "$@".
ogs is a SCIF-app:
%appinstall ogs
...
%apprun ogs
exec ogs
Full recipe files:
Singularity.def, the SCIF-related part is at the end of the file
I am running a container with:
some_file.prj
is a file in my current working directory on the host. The problem is that inside the container I guess the working directory is set to SCIF-app directory (e.g./scif/apps/ogs
) and consequently my app executable cannot find this file.When running the container with the following it works:
Is the working directory always changed to the SCIF-app directory? More info on my setup below.
The runscript of the container is:
exec scif run ogs "$@"
.ogs
is a SCIF-app:Full recipe files: