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

how to provide singularity images to any remote user #333

Open
atharvnagarikar opened this issue Dec 28, 2020 · 16 comments
Open

how to provide singularity images to any remote user #333

atharvnagarikar opened this issue Dec 28, 2020 · 16 comments

Comments

@atharvnagarikar
Copy link

Hi, I installed the Singularity registry server and able to push singularity images to a local server using HTTP, But I don't understand how to share the stored image from the Singularity registry server to any remote user who is not connected to any this particular server
err7
err8

@vsoch
Copy link
Member

vsoch commented Feb 21, 2021

hey @atharvnagarikar sorry for missing this issue! If you are running the registry on your local machine, you're right - you can't really easily share images. The idea would be to deploy a registry on a server (cloud, some institution server that you have access to) where you can then expose the registry interface to the larger internet. Then users can also use the Singularity client to pull your images. Let me know if you have any more questions. If you haven't seen the documentation / client user pages, see https://singularityhub.github.io/sregistry/docs/client

@arnram
Copy link

arnram commented Oct 4, 2021

Can you please let me know how to launch the singularity registry server on the institution level or what procedure do I need to follow

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

@arnram
Copy link

arnram commented Oct 4, 2021

Or isn't it possible to pull or push an image using IP: port no.

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

I don’t understand that question. The registry is a server that a singularity client can push to and pull from.

@arnram
Copy link

arnram commented Oct 4, 2021

For example, singularity server and multiple users are connected to the same network, then is it possible for any user either to pull or push any singularity image by using commands like ($ singularity push -U --library http://10.208.3.9:9080 busybox_latest.sif library://vsoch/dinosaur-collection/another:latest )

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

Yes, that’s the general idea. :)

@arnram
Copy link

arnram commented Oct 4, 2021

but I'm not able to do that
Actually, what I did is that I created a registry server on one computer(name:- server) and tried to access the registry application from another computer(name:- User ) that is connected to the same network and I am able to do so. But whenever I tried to pull or push singularity image from the "user " computer using the command ($ singularity push -U --library http://10.208.3.9:9080 qe.sif library://arncdac/hpc/qe:latest) I am not able to do it. Can you please help me into this

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

You’d need to look at the error logs of the server, docker-compose logs uwsgi or docker-compose logs nginx. You probably want an actual domain name, and It’s hugely not recommended to deploy a server without https.

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

Singularity also by default will not push to a non https registry. You’d have to recompile a special version to allow it. There should be a link in the client docs for the file to change to try it.

@arnram
Copy link

arnram commented Oct 4, 2021

ok, So if I want to make registry sever public within the network I have to provide domain name ?

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

The domain name is recommended, and https is required so singularity can push.

@arnram
Copy link

arnram commented Oct 4, 2021

ok, thank you so much

@arnram
Copy link

arnram commented Oct 4, 2021

I have another doubt, how to push or pull the docker image to the registry server. I mean which command should I used to do so

@vsoch
Copy link
Member

vsoch commented Oct 4, 2021

This registry is not compatible with Docker images. If you want dual compatibility you should use an OCI registry.

@arnram
Copy link

arnram commented Oct 4, 2021

ok thanks

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

3 participants