-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bootstrap from Singularity image on GHCR? #11
Comments
Yep! You should be able to bootstrap oras, which is the same way we push. See https://sylabs.io/guides/3.5/user-guide/appendix.html#oras-bootstrap-agent |
Thanks for the quick response. I tried that and got:
|
What if you just download Oras and pull with -a? it’s after 1am here so I’ll probably need to pick up helping tomorrow. |
Oras without
With
Normal |
Okay that's our sanity check! The And I installed singularity 3.9.0 and it does seem to be downloading (albeit very slowly):
$ ls -l /home/vanessa/.singularity/cache/oras/
total 118784
-rwx------ 1 vanessa vanessa 121634816 Feb 8 05:26 tmp_4250792211
vanessa@vanessa-ThinkPad-T450s:~$ ls -l /home/vanessa/.singularity/cache/oras/
total 230400
-rwx------ 1 vanessa vanessa 235929600 Feb 8 05:27 tmp_4250792211 Going to wait it out and make sure it finishes. Okay it just finished - image seems okay! DEBUG [U=1000,P=438534] Init() Image format detection
DEBUG [U=1000,P=438534] Init() Check for sandbox image format
DEBUG [U=1000,P=438534] Init() sandbox format initializer returned: not a directory image
DEBUG [U=1000,P=438534] Init() Check for sif image format
DEBUG [U=1000,P=438534] Init() sif image format detected
$ ls
pytorch-singularity_v3.9-torch1.10.2-dj0.12.7.def.sif
vanessa@vanessa-ThinkPad-T450s:~/go/src/github.com/sylabs/singularity/builddir$ singularity shell pytorch-singularity_v3.9-torch1.10.2-dj0.12.7.def.sif
Singularity> So I think if a basic singularity pull oras:// isn't working for you it might be a bug with singularity? I just built 3.9.0 from sylabs - give that repository a shot and if it still is an error it sounds like maybe a bug to report - something with using the wrong puller (library instead of oras) or maybe even a memory issue. E.g., based on seeing: while fetching library image it looks like your install is trying to install oras from the library? That might be the issue. |
You were right. I had version |
I was wondering if it is in any way possible to use a singularity image that was pushed to ghcr.io with this workflow as the source for bootstrapping in a new singularity definition?
The text was updated successfully, but these errors were encountered: