GithubHelp home page GithubHelp logo

sregistry under https about sregistry HOT 5 CLOSED

imerelli avatar imerelli commented on July 18, 2024
sregistry under https

from sregistry.

Comments (5)

vsoch avatar vsoch commented on July 18, 2024

Is it possibile to push an image using singularity push without https?

Yes, this is the default, and it should work out of the box, with the caveat you usually need a special compiled version of the client.

When I made sregistry it meant compiling singularity with an adjustment to a file, which is described here https://singularityhub.github.io/sregistry/docs/client#singularity-push. That code, however, I think is old, and my guess is that now it's controlled by how you login to the remote: https://github.com/sylabs/singularity/blob/f1477058a25cddedb0ca5b2377b6f9ef827865a7/internal/pkg/remote/credential/login_handler.go. It's 1:30 am here so I can't look into this for you, but if you don't figure it out I'd ping the Singularity slack (Sylabs) and ask about how to get http for push.

For pull, they now have a no https --nohttps flag . With push I think it's still required, and you'll need to compile this special version.

Otherwise, how can I run sregistry using https?

This is what I'd consider a production deployment. We have ample docs here: https://singularityhub.github.io/sregistry/docs/install/https for both faux (development) and production https.

from sregistry.

imerelli avatar imerelli commented on July 18, 2024

Ok, thank you for the suggestions.

I'm trying to move sregistry under https. I was able to generate the certificates (that are now on the host server) and I moved the https/docker-compose.yml and https/nginx.conf files to the sregistry root directory (moving the other to http as suggested). I also modified the indicated section in the config.py as follows:

DOMAIN_NAME = "https://sregistry.bioinfotiget.it"
DOMAIN_NAME_HTTP = "http://sregistry.bioinfotiget.it"
DOMAIN_NAKED = DOMAIN_NAME_HTTP.replace("http://", "")

The docker compose run smoothly but the nginx server is not running properly,
because the site is down and also checking the port the server is not running:

nmap localhost
Starting Nmap 7.70 ( https://nmap.org ) at 2022-09-09 13:56 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000012s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
631/tcp open ipp
8090/tcp open opsmessaging

Any hints on what the error can be? Is there any log I can check?

from sregistry.

vsoch avatar vsoch commented on July 18, 2024

Can you check the nginx logs? usually docker-compose logs or docker logs against the container can give us a hint.

from sregistry.

imerelli avatar imerelli commented on July 18, 2024

Looking at the logs it was clear that the file dhparam.pem was missing.
Thanks

from sregistry.

vsoch avatar vsoch commented on July 18, 2024

Sure! You reported https working in your other thread so let's close this issue.

from sregistry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.