by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 31 2019 18:20
  • Jan 31 2019 17:59
    vsoch commented #174
  • Jan 28 2019 16:27
    michaelmoore10 commented #174
  • Jan 28 2019 15:11
    vsoch commented #174
  • Jan 28 2019 15:06
    vsoch commented #174
  • Jan 28 2019 14:43
    michaelmoore10 commented #174
  • Jan 22 2019 01:19
    vsoch closed #46
  • Jan 16 2019 14:07
    fenz commented #174
  • Jan 16 2019 14:06
    fenz commented #174
  • Jan 16 2019 11:20
    fenz commented #174
  • Jan 16 2019 10:17
    vsoch commented #174
  • Jan 16 2019 08:25
    fenz commented #174
  • Jan 16 2019 08:04
    fenz commented #172
  • Jan 15 2019 22:46
    vsoch opened #174
  • Jan 15 2019 19:58

    vsoch on quick-fix

    (compare)

  • Jan 15 2019 19:58

    vsoch on master

    fixing broken links Merge pull request #173 from si… (compare)

  • Jan 15 2019 19:58
    vsoch closed #173
  • Jan 15 2019 19:58
    vsoch opened #173
  • Jan 15 2019 19:57

    vsoch on quick-fix

    fixing broken links (compare)

  • Jan 15 2019 15:06
    vsoch commented #172
Vanessasaurus
@vsoch
awesome!
Andreas Henkel
@henkela
Hi, is there a specific reason you keep the Python-Docker-Image on version 3.5.1?
Vanessasaurus
@vsoch
Why not?
For which image exactly?
Andreas Henkel
@henkela
I meant instead of Python:latest. In the sregistry Dockerfile
kanthsai143
@kanthsai143
Hello @vsoch
I am wondering if there is a way we can store all singularity images on gcr.io registry?
Vanessasaurus
@vsoch
That’s a Docker Registry, Singularity containers don’t fit into that framework
You could put them in Google Storage, although Singularity Hub already does that, and the Singularity Registry client has several ways to do that
Can you describe the kind of thing. You are looking to do?
kanthsai143
@kanthsai143
Thanks for the quick response.
Sorry I have to get back to later once I have more information
kanthsai143
@kanthsai143
@all Anyone able to integrate with ldap?
kanthsai143
@kanthsai143
When I try using ldap, I keep running into this error AttributeError: module 'django.contrib.auth.views' has no attribute 'login'
kanthsai143
@kanthsai143
I am trying to integrate AD using django auth. I was able to get my user login working. I am trying to see a way to import groups from AD.
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("dc=example,dc=com",ldap.SCOPE_SUBTREE, "(objectClass=group)")
AUTH_LDAP_GROUP_TYPE = NestedActiveDirectoryGroupType
AUTH_LDAP_FIND_GROUP_PERMS = True
AUTH_LDAP_MIRROR_GROUPS = True
I used the above and also tried various group types an objectClass. But nothing worked
kanthsai143
@kanthsai143
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=sads,DC=example,DC=com",ldap.SCOPE_SUBTREE, "(objectClass=group)")
AUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType(name_attr="cn")
After lot of digging. This worked for me. :
:)
Vanessasaurus
@vsoch
Oh cool! Do you think what you learned would be helpful to other users?
kanthsai143
@kanthsai143
Yeah if they use Active Directory
Vanessasaurus
@vsoch
Would you care to write up a snippet that explains your use case and what you figured out, and we can add it to the docs?
kanthsai143
@kanthsai143
Sure
kanthsai143
@kanthsai143

``` AUTH_LDAP_SERVER_URI = "ldap://ldaphost.yourcompany.com"

DN and password needed to bind to LDAP to retrieve user information

AUTH_LDAP_BIND_DN = "CN=sregistryaccount,OU=sregistryaccountlocation,OU=ldaphost,DC=yourcompany,DC=com"

AUTH_LDAP_BIND_DN = "sregistryaccount@yourcompany.com"

AUTH_LDAP_BIND_PASSWORD = "bindpassword"
AUTH_LDAP_ALWAYS_UPDATE_USER = True

AUTH_LDAP_BIND_AS_AUTHENTICATING_USER = True

Any user account that has valid auth credentials can login

AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=users,ou=ldaphost,dc=yourcompany,dc=com",ldap.SCOPE_SUBTREE, "(samaccountname=%(user)s)")
AUTH_LDAP_USER_DN_TEMPLATE = None
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=ldaphost,DC=yourcompany,DC=com",ldap.SCOPE_SUBTREE, "(objectClass=group)")
AUTH_LDAP_GROUP_TYPE =NestedActiveDirectoryGroupType(name_attr="cn")

AUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType(name_attr="cn")

AUTH_LDAP_FIND_GROUP_PERMS = True
AUTH_LDAP_MIRROR_GROUPS = True

Populate the Django user model from the LDAP directory.

AUTH_LDAP_USER_ATTR_MAP = {
"first_name": "givenName",
"last_name": "sn",
"email": "mail"
}
'''

This is the snippet I used to get AD working with sregistry
Using samaccountname is the key to get it working
Vanessasaurus
@vsoch
hey @kanthsai143 I'm just seeing this now! What I meant is write up a snippet (markdown) to add to the "docs" folder hosted by the repository, via a pull request.
The config above is not useful unless you provide the context - how you were setting it up, the issues you ran into, and how that config solved them (and explain your choices)
kanthsai143
@kanthsai143
Sure. Will update it by the end of this weekend
Natacha Beck
@natacha-beck
Hi everyone, I have a pending build on singularity hub since 2 days is it normal ?
Katerintse
@Katerintse
Hi! I can not connect to Singularity-hub.org. Do you know if it is down for some reason?
BRG
@coolbrg
Hi @vsoch , I am avid user of github pages/jekyll. Really liked your docs theme. Is there any way I can help in the documentations?
Thanks
(Why here? Couldn't find the email anywhere :) )
Vanessasaurus
@vsoch
Heyo! The biggest help would be to contribute! If you see something missing, please open a PR to add it. Singularity Hub and Singularity Registry Server both use mkdocs-Jekyll (a template I developed) so any features added there could be useful. What in particular did you have in mind?
BRG
@coolbrg
Sure. Gradually, going through the repo and will open PR or ask a question.
BlakeGFitch
@BlakeGFitch
Hi! I am using sregistry in an ubuntu VM authenticating with ldap. Login seems to work. Loading a image seems to work. Generating a link doesn't seem to work. Maybe I am doing something wrong. I get the following:
image.png
I don't see anything in the log using: docker-compose logs --tail=30 -f uwsgi
Any ideas? Is there another place to look for information on this error or am I simply using sregistry wrong?
BlakeGFitch
@BlakeGFitch
bgf@U18Sing:~$ singularity pull shub://127.0.0.1/foobarglub/hello-world:latest
FATAL:   While pulling shub image: failed to get manifest for: shub://127.0.0.1/foobarglub/hello-world:latest: no response received from singularity hub
bgf@U18Sing:~$ singularity --version
singularity version 3.4.2-1
BlakeGFitch
@BlakeGFitch
This however works (from http not https):
bgf@U18Sing:~$ singularity pull --library http://127.0.0.1 foobarglub/hello-world:latest
WARNING: unable to verify container: hello-world_latest.sif
WARNING: Skipping container verification
Ratin Kumar
@DumbMachine
Greetings, I had a question regarding running a singularity container as a background process.
I wish to run a MongoDB instance in background.
Ratin Kumar
@DumbMachine
Currently I'm using the command:
        mongo_container = client.instance("docker://mongo", name="mongo", options=options)
This starts the container but the mongo instance doesn't start by itself. I have to use the shell of the instance to start mongod
Aleksi Ikkala
@aikkala
Hey, could someone tell me how to enable singlarity hub to see my private repos? When I go to 'My Collections' I can only choose one of my public repos for container build
Ah, it seems like I misunderstood "You are free to choose allowing Singularity Hub to build public or private collections" in the docs. I thought you were allowed to build containers from private git repos, but instead you're allowed to make one collection private. Nevermind!