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

Issues for distributing ELEPHANT's singularity image #22

Closed
RubenRam opened this issue Jun 22, 2023 · 1 comment
Closed

Issues for distributing ELEPHANT's singularity image #22

RubenRam opened this issue Jun 22, 2023 · 1 comment

Comments

@RubenRam
Copy link
Contributor

In order to distribute the Singularity image among different users, there should be an option to explicitly run the %runscript section of the elephant.def description file that copies the content of /var to the users .elephant_binds folder.

Right now this is only done in the make singularity-build option:

singularity-build:
        singularity build --fakeroot elephant.sif elephant.def
        singularity run --fakeroot elephant.sif

However, if the image is already available, the user (one that hasn't run the build) executes the "make singularity-launch" instruction which lacks the runscript setup. If the runscript section is not executed, the user will be missing the .elephant_binds content and thus the server services (e.g.: RabbitMQ) fail to start.

I'd suggest adding another option in the Makefile such as "make singularity-setup" that explicitly runs the runscript section

        singularity run --fakeroot elephant.sif
@ksugar
Copy link
Member

ksugar commented Oct 11, 2023

Thank you for your feedback! (and sorry for the late reply...)
It's a good suggestion, and I will introduce it in the next release.

ksugar added a commit that referenced this issue Nov 5, 2023
Added target singularity-init and modified singularity-build to fix #22
@ksugar ksugar closed this as completed in a4cc9dc Nov 5, 2023
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

2 participants