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

change prompt name in singularity containers from Singularity> to version of tool #95

Closed
stebo85 opened this issue Jan 31, 2022 · 4 comments
Assignees

Comments

@stebo85
Copy link
Contributor

stebo85 commented Jan 31, 2022

No description provided.

@stebo85
Copy link
Contributor Author

stebo85 commented Jan 31, 2022

discussed in #84

@stebo85 stebo85 self-assigned this Feb 7, 2022
@stebo85
Copy link
Contributor Author

stebo85 commented Feb 21, 2022

started working on this: will add another configuration file in singularity on cvmfs:

# echo "check if custom promt exists for singularity:"
# if [[ -f "/cvmfs/neurodesk.ardc.edu.au/containers/${IMAGENAME_BUILDDATE}/${IMAGENAME_BUILDDATE}.simg/.singularity.d/env/99-zz_custom_env.sh" ]]
# then
#     echo "99-zz_custom_env exists for ${IMAGENAME_BUILDDATE} on cvmfs"
# else
#     echo "99-zz_custom_env does not exist for ${IMAGENAME_BUILDDATE} on cvmfs. Creating it."
#     CUSTOM_ENV=/.singularity.d/env/99-zz_custom_env.sh
#     echo "#!/bin/bash" >> $CUSTOM_ENV
#     PS1="[my_container]\w \$"
#     EOF
#         chmod 755 $CUSTOM_ENV
# fi

in sync_containers_to_cvmfs.sh

Idea is to not break a "standard" singularity container (therefore not during build), but on cvmfs we can do what we like after the container was unpacked. This will also allow us to revert this quickly in case of adverse effects. Or modications required later.

@aswinnarayanan aswinnarayanan changed the title change promt name in singularity containers from Singularity> to version of tool change prompt name in singularity containers from Singularity> to version of tool Jul 26, 2022
@aswinnarayanan
Copy link
Contributor

Added in NeuroDesk/neurocommand@ff9ac99

@stebo85
Copy link
Contributor Author

stebo85 commented Jul 26, 2022

oh cool! That's a very nice solution! much better than adding it to CVMFS :)

@stebo85 stebo85 moved this to Completed in NeuroDesk Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants