Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eessi_container.sh script needs to take into account $APPTAINER_BIND if it is set #819

Open
migueldiascosta opened this issue Nov 21, 2024 · 0 comments

Comments

@migueldiascosta
Copy link

I just tried the eessi_container.sh script on a system configured to use apptainer and with $APPTAINER_BIND defined instead of $SINGULARITY_BIND, got WARNING: SINGULARITY_BIND and APPTAINER_BIND have different values, using the latter, and then the EESSI paths were not bind mounted

This is because the script defines $SINGULARITY_BIND without taking into account $APPTAINER_BIND, so then both of them are set and are different

if [[ -z ${SINGULARITY_BIND} ]]; then
export SINGULARITY_BIND="${BIND_PATHS}"
else
export SINGULARITY_BIND="${SINGULARITY_BIND},${BIND_PATHS}"
fi
[[ ${VERBOSE} -eq 1 ]] && echo "SINGULARITY_BIND=${SINGULARITY_BIND}"

I simply replaced $SINGULARITY_BIND with $APPTAINER_BIND in the script and then it worked fine, but looks like more generically the script will need to take into account multiple scenarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant